Transform correctly the coordinates.
Modified: trunk/reactos/subsys/win32k/objects/bitmaps.c
Modified: trunk/reactos/subsys/win32k/objects/brush.c
_____
Modified: trunk/reactos/subsys/win32k/objects/bitmaps.c
--- trunk/reactos/subsys/win32k/objects/bitmaps.c 2005-12-30
01:14:27 UTC (rev 20451)
+++ trunk/reactos/subsys/win32k/objects/bitmaps.c 2005-12-30
01:19:41 UTC (rev 20452)
@@ -116,6 +116,8 @@
DestRect.right = XDest+Width;
DestRect.bottom = YDest+Height;
+ IntLPtoDP(DCDest, (LPPOINT)&DestRect, 2);
+
SourcePoint.x = XSrc;
SourcePoint.y = YSrc;
_____
Modified: trunk/reactos/subsys/win32k/objects/brush.c
--- trunk/reactos/subsys/win32k/objects/brush.c 2005-12-30 01:14:27 UTC
(rev 20451)
+++ trunk/reactos/subsys/win32k/objects/brush.c 2005-12-30 01:19:41 UTC
(rev 20452)
@@ -480,6 +480,8 @@
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;
Show replies by date