1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 00:04:43 +01:00

Apply requested changes

This commit is contained in:
Marijn van der Werf
2017-10-14 23:53:45 +02:00
parent a65192b141
commit fcfa4ffcc2
2 changed files with 6 additions and 7 deletions

View File

@@ -214,7 +214,7 @@ extern "C"
_legacyPaint.Alignment = TextAlignment::LEFT;
_legacyPaint.SpriteBase = gCurrentFontSpriteBase;
auto layout = StaticLayout(buffer, _legacyPaint, width);
StaticLayout layout(buffer, _legacyPaint, width);
layout.Draw(dpi, x, y);
return layout.GetHeight();
@@ -232,7 +232,7 @@ extern "C"
_legacyPaint.Alignment = TextAlignment::CENTRE;
_legacyPaint.SpriteBase = gCurrentFontSpriteBase;
auto layout = StaticLayout(buffer, _legacyPaint, width);
StaticLayout layout(buffer, _legacyPaint, width);
// The original tried to vertically centre the text, but used line count - 1
sint32 lineCount = layout.GetLineCount();