From 7a1ccd8abe04a2eeb27f9215ff910a6e45688d8c Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Fri, 24 Aug 2012 15:42:47 +0900 Subject: [PATCH] gdiplus: Do not convert range_rect.X twice. --- 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 5e769275035..0056a2f0494 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -4909,7 +4909,7 @@ static GpStatus measure_ranges_callback(HDC hdc, GetTextExtentExPointW(hdc, string + index, range_end - index, INT_MAX, NULL, NULL, &range_size); - range_rect.Width = (bounds->X + range_size.cx - range_rect.X) / args->rel_width; + range_rect.Width = (bounds->X + range_size.cx) / args->rel_width - range_rect.X; stat = GdipCombineRegionRect(args->regions[i], &range_rect, CombineModeUnion); if (stat != Ok)