Commit 1b17c8d0 authored by Igor Tarasov's avatar Igor Tarasov Committed by Alexandre Julliard

gdi32: Add logcal points to device points conversion for source bitmap before bit stretching.

parent 47adeb05
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment