1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 22:34:33 +01:00

Replace GfxDrawStringNoFormatting() (#19414)

* Replace GfxDrawStringNoFormatting()

* Unwrap static DrawText overload
This commit is contained in:
Michael Steenbeek
2023-02-15 23:44:22 +01:00
committed by GitHub
parent b56748bc82
commit 583b4ed0e6
6 changed files with 10 additions and 26 deletions

View File

@@ -239,7 +239,7 @@ public:
for (int32_t line = 0; line <= no_lines; line++)
{
screenCoords.x = windowPos.x + 12;
GfxDrawStringNoFormatting(&dpi, screenCoords, wrapPointer, { colours[1], FontStyle::Medium });
DrawText(&dpi, screenCoords, { colours[1], FontStyle::Medium, TextAlignment::LEFT }, wrapPointer, true);
size_t string_length = GetStringSize(wrapPointer) - 1;