From 428a48a083b4fb9d2ca4b095e43829631cca799f Mon Sep 17 00:00:00 2001 From: Gregor Schneider Date: Wed, 8 Apr 2009 16:53:21 +0000 Subject: [PATCH] - Offset coordinates with viewport origin for gradient filled triangular and rectangular shapes svn path=/trunk/; revision=40418 --- reactos/subsystems/win32/win32k/objects/fillshap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reactos/subsystems/win32/win32k/objects/fillshap.c b/reactos/subsystems/win32/win32k/objects/fillshap.c index 0722acf9a48..c3f85f5637b 100644 --- a/reactos/subsystems/win32/win32k/objects/fillshap.c +++ b/reactos/subsystems/win32/win32k/objects/fillshap.c @@ -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;