Module: wine Branch: master Commit: d0fcc19e7e43f7e9bc6709f7b737e47195c990f1 URL: http://source.winehq.org/git/wine.git/?a=commit;h=d0fcc19e7e43f7e9bc6709f7b7...
Author: Dmitry Timoshkov dmitry@baikal.ru Date: Tue May 15 01:35:32 2012 +0900
gdiplus: Fix the clipping region calculation.
---
dlls/gdiplus/graphics.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index f2c956ea..c6e6a6e 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -5190,9 +5190,9 @@ GpStatus WINGDIPAPI GdipDrawString(GpGraphics *graphics, GDIPCONST WCHAR *string (pt[2].X-pt[0].X)*(pt[2].X-pt[0].X));
rectcpy[3].X = rectcpy[0].X = rect->X; - rectcpy[1].Y = rectcpy[0].Y = rect->Y + offsety; + rectcpy[1].Y = rectcpy[0].Y = rect->Y; rectcpy[2].X = rectcpy[1].X = rect->X + rect->Width; - rectcpy[3].Y = rectcpy[2].Y = rect->Y + offsety + rect->Height; + rectcpy[3].Y = rectcpy[2].Y = rect->Y + rect->Height; transform_and_round_points(graphics, corners, rectcpy, 4);
scaled_rect.X = 0.0;