From a2d569a0e61eaf56dc127db4db56ab80b1bc42f9 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Mon, 1 Mar 2010 12:39:52 +0100 Subject: [PATCH] winex11.drv: Use the bitmap's "topdown" field in X11DRV_SetDIBits(). --- 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 7608b38c0a9..755c9d850e1 100644 --- a/dlls/winex11.drv/dib.c +++ b/dlls/winex11.drv/dib.c @@ -4054,7 +4054,7 @@ INT CDECL X11DRV_SetDIBits( X11DRV_PDEVICE *physDev, HBITMAP hbitmap, UINT start UINT y; TRACE("syncing compatible set bits to app bits\n"); - if ((tmpheight < 0) ^ (ds.dsBmih.biHeight < 0)) + if ((tmpheight < 0) ^ physBitmap->topdown) { dbits += dstwidthb * (lines-1); dstwidthb = -dstwidthb;