From 27c85646057fd4b1011f4e3c7101930a892accaa Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 10 May 2010 12:35:47 +0200 Subject: [PATCH] winex11: The startscan line is relative to the destination in SetDIBits. --- dlls/winex11.drv/dib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/winex11.drv/dib.c b/dlls/winex11.drv/dib.c index d72ae00fe61..95e3511791e 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; -- 2.11.4.GIT