Alexandre Julliard : winex11: The startscan line is relative to the destination in SetDIBits.

Alexandre Julliard julliard at winehq.org
Mon May 10 11:59:14 CDT 2010


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon May 10 12:35:47 2010 +0200

winex11: The startscan line is relative to the destination in SetDIBits.

---

 dlls/winex11.drv/dib.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/winex11.drv/dib.c b/dlls/winex11.drv/dib.c
index d72ae00..95e3511 100644
--- a/dlls/winex11.drv/dib.c
+++ b/dlls/winex11.drv/dib.c
@@ -4043,8 +4043,8 @@ INT CDECL X11DRV_SetDIBits( X11DRV_PDEVICE *physDev, HBITMAP hbitmap, UINT start
   {
       unsigned int srcwidthb = X11DRV_DIB_GetDIBWidthBytes( width, descr.infoBpp );
       int dstwidthb = ds.dsBm.bmWidthBytes;
-      LPBYTE dbits = physBitmap->base;
-      const BYTE *sbits = (const BYTE*)bits + (startscan * srcwidthb);
+      LPBYTE dbits = physBitmap->base + startscan * dstwidthb;
+      const BYTE *sbits = bits;
       int widthb;
       UINT y;
 




More information about the wine-cvs mailing list