mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
Now the conversion in the blt functions round up the result.
This commit is contained in:
parent
c4c129dc50
commit
dff30ac2c7
@ -1140,8 +1140,10 @@ static BOOL BITBLT_InternalStretchBlt( DC *dcDst, INT xDst, INT yDst,
|
||||
|
||||
xDst = dcDst->w.DCOrgX + XLPTODP( dcDst, xDst );
|
||||
yDst = dcDst->w.DCOrgY + YLPTODP( dcDst, yDst );
|
||||
widthDst = widthDst * dcDst->vportExtX / dcDst->wndExtX;
|
||||
heightDst = heightDst * dcDst->vportExtY / dcDst->wndExtY;
|
||||
|
||||
/* Here we have to round to integers, not truncate */
|
||||
widthDst = MulDiv(widthDst, dcDst->vportExtX, dcDst->wndExtX);
|
||||
heightDst = MulDiv(heightDst, dcDst->vportExtY, dcDst->wndExtY);
|
||||
|
||||
TRACE(" vportdst=%d,%d-%d,%d wnddst=%d,%d-%d,%d\n",
|
||||
dcDst->vportOrgX, dcDst->vportOrgY,
|
||||
|
Loading…
Reference in New Issue
Block a user