Commit 27c85646 authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent f4be1662
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment