Transform correctly the coordinates.
authorFilip Navara <filip.navara@gmail.com>
Fri, 30 Dec 2005 01:19:41 +0000 (01:19 +0000)
committerFilip Navara <filip.navara@gmail.com>
Fri, 30 Dec 2005 01:19:41 +0000 (01:19 +0000)
svn path=/trunk/; revision=20452

reactos/subsys/win32k/objects/bitmaps.c
reactos/subsys/win32k/objects/brush.c

index a9f2718..1800c5f 100644 (file)
@@ -116,6 +116,8 @@ NtGdiBitBlt(
        DestRect.right  = XDest+Width;
        DestRect.bottom = YDest+Height;
 
+        IntLPtoDP(DCDest, (LPPOINT)&DestRect, 2);
+
        SourcePoint.x = XSrc;
        SourcePoint.y = YSrc;
 
index 1e69f1e..8b36b4e 100644 (file)
@@ -480,6 +480,8 @@ IntPatBlt(
          DestRect.bottom = YLeft + dc->w.DCOrgY + 1;
       }
 
+      IntLPtoDP(dc, (LPPOINT)&DestRect, 2);
+
       BrushOrigin.x = BrushObj->ptOrigin.x + dc->w.DCOrgX;
       BrushOrigin.y = BrushObj->ptOrigin.y + dc->w.DCOrgY;