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

Alexandre Julliard julliard at winehq.org
Wed Jan 28 08:03:24 CST 2009


Module: wine
Branch: master
Commit: 1b17c8d057417ec66e1513877292f87e9f9e1cc3
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=1b17c8d057417ec66e1513877292f87e9f9e1cc3

Author: Igor Tarasov <tarasov.igor at gmail.com>
Date:   Tue Jan 27 21:28:11 2009 +0400

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

---

 dlls/gdi32/bitblt.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/dlls/gdi32/bitblt.c b/dlls/gdi32/bitblt.c
index cff45be..4270f51 100644
--- a/dlls/gdi32/bitblt.c
+++ b/dlls/gdi32/bitblt.c
@@ -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 );
 




More information about the wine-cvs mailing list