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

This commit is contained in:
Alexandre Julliard 2010-05-10 12:35:47 +02:00
parent f4be166234
commit 27c8564605
1 changed files with 2 additions and 2 deletions

View File

@ -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;