[ros-dev] [ros-diffs] [gschneider] 40418: - Offset coordinates with viewport origin for gradient filled triangular and rectangular shapes
Timo Kreuzer
timo.kreuzer at web.de
Wed Apr 8 19:13:49 CEST 2009
The DC origin is in device coordinates and should be the last translation.
gschneider at 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/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;
>
>
>
More information about the Ros-dev
mailing list