winex11.drv: The y coordinate should be offset agaist the height, not the width.
This commit is contained in:
parent
ac28398d12
commit
22b5890862
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue