[1/3] gdiplus: Do not convert range_rect.X twice.

Dmitry Timoshkov dmitry at baikal.ru
Fri Aug 24 01:42:47 CDT 2012


---
 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 5e76927..0056a2f 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)
-- 
1.7.11.5




More information about the wine-patches mailing list