Module: wine Branch: master Commit: 508b00a3291f0987f5db2e704fb5de50e92529de URL: http://source.winehq.org/git/wine.git/?a=commit;h=508b00a3291f0987f5db2e704f...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Mon Mar 1 12:39:54 2010 +0100
winex11.drv: Use the bitmap's "topdown" field in X11DRV_DIB_DoCopyDIBSection().
---
dlls/winex11.drv/dib.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/winex11.drv/dib.c b/dlls/winex11.drv/dib.c index 755c9d8..2021aab 100644 --- a/dlls/winex11.drv/dib.c +++ b/dlls/winex11.drv/dib.c @@ -4249,7 +4249,7 @@ static void X11DRV_DIB_DoCopyDIBSection(X_PHYSBITMAP *physBitmap, BOOL toDIB, descr.palentry = NULL; descr.infoWidth = dibSection.dsBmih.biWidth; descr.infoBpp = dibSection.dsBmih.biBitCount; - descr.lines = dibSection.dsBmih.biHeight; + descr.lines = physBitmap->topdown ? -dibSection.dsBmih.biHeight : dibSection.dsBmih.biHeight; descr.image = physBitmap->image; descr.colorMap = colorMap; descr.nColorMap = nColorMap;