mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-23 05:08:34 +01:00
use measurechar where applicable
This commit is contained in:
parent
90e0ff55d1
commit
73f2e1c565
1 changed files with 2 additions and 3 deletions
|
@ -124,9 +124,8 @@ namespace MLEM.Formatting {
|
||||||
if (i == 0)
|
if (i == 0)
|
||||||
token.DrawSelf(time, batch, pos + innerOffset, font, color, scale, depth);
|
token.DrawSelf(time, batch, pos + innerOffset, font, color, scale, depth);
|
||||||
|
|
||||||
var cString = c.ToString();
|
token.DrawCharacter(time, batch, c, c.ToString(), i, pos + innerOffset, drawFont, drawColor, scale, depth);
|
||||||
token.DrawCharacter(time, batch, c, cString, i, pos + innerOffset, drawFont, drawColor, scale, depth);
|
innerOffset.X += font.MeasureChar(c).X * scale;
|
||||||
innerOffset.X += font.MeasureString(cString).X * scale;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue