mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-24 06:11:08 +00:00
Corrected a stupid error where MeasureCharacterRanges was called with incorrect parameters.
This commit is contained in:
parent
8e4287b46e
commit
426cb6432d
|
@ -207,7 +207,7 @@ namespace OpenTK.Graphics
|
|||
if (alignment == StringAlignment.Near && !rightToLeft || alignment == StringAlignment.Far && rightToLeft)
|
||||
{
|
||||
ICollection<RectangleF> ranges = new List<RectangleF>();
|
||||
font.MeasureCharacterRanges(text, StringFormat.GenericTypographic, ref ranges);
|
||||
font.MeasureCharacterRanges(text, ref ranges);
|
||||
|
||||
int current = 0;
|
||||
//foreach (char c in text)
|
||||
|
|
Loading…
Reference in a new issue