gdiplus: Fix a typo leading to incorrect character width calculation in GdipMeasureDriverString.
This commit is contained in:
parent
d488081214
commit
a45da55922
|
@ -6345,7 +6345,7 @@ GpStatus WINGDIPAPI GdipMeasureDriverString(GpGraphics *graphics, GDIPCONST UINT
|
||||||
}
|
}
|
||||||
|
|
||||||
GetCharABCWidthsW(hdc, glyph_indices[i], glyph_indices[i], &abc);
|
GetCharABCWidthsW(hdc, glyph_indices[i], glyph_indices[i], &abc);
|
||||||
char_width = abc.abcA + abc.abcB + abc.abcB;
|
char_width = abc.abcA + abc.abcB + abc.abcC;
|
||||||
|
|
||||||
if (min_y > y - ascent) min_y = y - ascent;
|
if (min_y > y - ascent) min_y = y - ascent;
|
||||||
if (max_y < y + descent) max_y = y + descent;
|
if (max_y < y + descent) max_y = y + descent;
|
||||||
|
|
Loading…
Reference in New Issue