gdiplus: Do not convert range_rect.X twice.
This commit is contained in:
parent
28821a924c
commit
7a1ccd8abe
@ -4909,7 +4909,7 @@ static GpStatus measure_ranges_callback(HDC hdc,
|
|||||||
|
|
||||||
GetTextExtentExPointW(hdc, string + index, range_end - index,
|
GetTextExtentExPointW(hdc, string + index, range_end - index,
|
||||||
INT_MAX, NULL, NULL, &range_size);
|
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);
|
stat = GdipCombineRegionRect(args->regions[i], &range_rect, CombineModeUnion);
|
||||||
if (stat != Ok)
|
if (stat != Ok)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user