From 48a2b48e16d751e0ddb72cb4e6729b943e018001 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20Mu=C5=BCy=C5=82o?= Date: Mon, 29 Oct 2012 23:42:39 +0100 Subject: [PATCH] gdiplus: Fix logic of treating the region of a string as unclipped. --- dlls/gdiplus/graphics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index 726885be0c3..1cea50b608c 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -5357,7 +5357,7 @@ GpStatus WINGDIPAPI GdipDrawString(GpGraphics *graphics, GDIPCONST WCHAR *string if (scaled_rect.Height >= INT_MAX || scaled_rect.Height < 0.5) scaled_rect.Height = (REAL)(1 << 23); if (!(format_flags & StringFormatFlagsNoClip) && - gdip_round(scaled_rect.Width) != 0 && gdip_round(scaled_rect.Height) != 0) + scaled_rect.Width != 1 << 23 && scaled_rect.Height != 1 << 23) { /* FIXME: If only the width or only the height is 0, we should probably still clip */ rgn = CreatePolygonRgn(corners, 4, ALTERNATE); -- 2.11.4.GIT