Henri Verbeet : winex11.drv: Use the bitmap's "topdown" field in X11DRV_SetDIBits().

Alexandre Julliard julliard at winehq.org
Mon Mar 1 09:27:36 CST 2010


Module: wine
Branch: master
Commit: a2d569a0e61eaf56dc127db4db56ab80b1bc42f9
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a2d569a0e61eaf56dc127db4db56ab80b1bc42f9

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Mon Mar  1 12:39:52 2010 +0100

winex11.drv: Use the bitmap's "topdown" field in X11DRV_SetDIBits().

---

 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 7608b38..755c9d8 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;




More information about the wine-cvs mailing list