1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 15:24:30 +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

@@ -326,7 +326,7 @@ void InGameConsole::Draw(DrawPixelInfo* dpi) const
// Draw current line
lineBuffer = _colourFormatStr + _consoleCurrentLine;
GfxDrawStringNoFormatting(dpi, screenCoords, lineBuffer.c_str(), { TEXT_COLOUR_255, InGameConsoleGetFontStyle() });
DrawText(dpi, screenCoords, { TEXT_COLOUR_255, InGameConsoleGetFontStyle() }, lineBuffer.c_str(), true);
// Draw caret
if (_consoleCaretTicks < CONSOLE_CARET_FLASH_THRESHOLD)