winex11.drv: The y coordinate should be offset agaist the height, not the width.

This commit is contained in:
H. Verbeet 2006-11-11 23:08:36 +01:00 committed by Alexandre Julliard
parent ac28398d12
commit 22b5890862
1 changed files with 2 additions and 2 deletions

View File

@ -1612,7 +1612,7 @@ static BOOL X11DRV_ClientSideDIBCopy( X11DRV_PDEVICE *physDevSrc, INT xSrc, INT
} }
else else
{ {
srcPtr = &physDevSrc->bitmap->base[(srcDib.dsBm.bmWidth-ySrc-1)*srcDib.dsBm.bmWidthBytes srcPtr = &physDevSrc->bitmap->base[(srcDib.dsBm.bmHeight-ySrc-1)*srcDib.dsBm.bmWidthBytes
+ xSrc*bytesPerPixel]; + xSrc*bytesPerPixel];
srcRowOffset = -srcDib.dsBm.bmWidthBytes; srcRowOffset = -srcDib.dsBm.bmWidthBytes;
} }
@ -1623,7 +1623,7 @@ static BOOL X11DRV_ClientSideDIBCopy( X11DRV_PDEVICE *physDevSrc, INT xSrc, INT
} }
else else
{ {
dstPtr = &physDevDst->bitmap->base[(dstDib.dsBm.bmWidth-yDst-1)*dstDib.dsBm.bmWidthBytes dstPtr = &physDevDst->bitmap->base[(dstDib.dsBm.bmHeight-yDst-1)*dstDib.dsBm.bmWidthBytes
+ xDst*bytesPerPixel]; + xDst*bytesPerPixel];
dstRowOffset = -dstDib.dsBm.bmWidthBytes; dstRowOffset = -dstDib.dsBm.bmWidthBytes;
} }