- Offset coordinates with viewport origin for gradient filled triangular and rectangular shapes

svn path=/trunk/; revision=40418
This commit is contained in:
Gregor Schneider 2009-04-08 16:53:21 +00:00
parent 1c33c8d19b
commit 428a48a083

View file

@ -907,6 +907,8 @@ IntGdiGradientFill(
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;