The DC origin is in device coordinates and should be the last translation.
gschneider(a)svn.reactos.org schrieb:
Author: gschneider
Date: Wed Apr 8 20:53:21 2009
New Revision: 40418
URL:
http://svn.reactos.org/svn/reactos?rev=40418&view=rev
Log:
- Offset coordinates with viewport origin for gradient filled triangular and rectangular
shapes
Modified:
trunk/reactos/subsystems/win32/win32k/objects/fillshap.c
Modified: trunk/reactos/subsystems/win32/win32k/objects/fillshap.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/fillshap.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/fillshap.c [iso-8859-1] Wed Apr 8
20:53:21 2009
@@ -907,6 +907,8 @@
DitherOrg.x = dc->ptlDCOrig.x;
DitherOrg.y = dc->ptlDCOrig.y;
+ IntLPtoDP(dc, (LPPOINT)&DitherOrg, 1);
+
Extent.left += DitherOrg.x;
Extent.right += DitherOrg.x;
Extent.top += DitherOrg.y;