mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 20:30:01 +00:00
gdi32: Add logcal points to device points conversion for source bitmap before bit stretching.
This commit is contained in:
parent
47adeb0525
commit
1b17c8d057
@ -174,6 +174,17 @@ BOOL WINAPI StretchBlt( HDC hdcDst, INT xDst, INT yDst,
|
||||
HBITMAP hbm;
|
||||
LPVOID bits;
|
||||
INT lines;
|
||||
POINT pts[2];
|
||||
|
||||
pts[0].x = xSrc;
|
||||
pts[0].y = ySrc;
|
||||
pts[1].x = xSrc + widthSrc;
|
||||
pts[1].y = ySrc + heightSrc;
|
||||
LPtoDP(hdcSrc, pts, 2);
|
||||
xSrc = pts[0].x;
|
||||
ySrc = pts[0].y;
|
||||
widthSrc = pts[1].x - pts[0].x;
|
||||
heightSrc = pts[1].y - pts[0].y;
|
||||
|
||||
release_dc_ptr( dcDst );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user