mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-26 03:35:33 +00:00
Corrected a stupid error where MeasureCharacterRanges was called with incorrect parameters.
This commit is contained in:
parent
4b47612234
commit
f40073b1b9
|
@ -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