(029f124e6) Fixed ScalableFont.MeasureString giving incorrect results for texts with newlines

This commit is contained in:
Joonas Rikkonen
2019-04-26 11:20:00 +03:00
parent a3ba709e92
commit 71d7d024e6
@@ -279,7 +279,7 @@ namespace Barotrauma
if (text[i] == '\n') if (text[i] == '\n')
{ {
currentLineX = 0.0f; currentLineX = 0.0f;
retVal.Y += baseHeight * 18 / 10; retVal.Y += baseHeight * 1.8f;
continue; continue;
} }
uint charIndex = text[i]; uint charIndex = text[i];