The DC origin is in device coordinates and should be the last translation. [email protected] 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/objects/fillshap.c?rev=40418&r1=40417&r2=40418&view=diff > ============================================================================== > --- 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; > > >
_______________________________________________ Ros-dev mailing list [email protected] http://www.reactos.org/mailman/listinfo/ros-dev
