From 508b00a3291f0987f5db2e704fb5de50e92529de Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Mon, 1 Mar 2010 12:39:54 +0100 Subject: [PATCH] winex11.drv: Use the bitmap's "topdown" field in X11DRV_DIB_DoCopyDIBSection(). --- dlls/winex11.drv/dib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/winex11.drv/dib.c b/dlls/winex11.drv/dib.c index 755c9d850e1..2021aabd2ae 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;