1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 23:34:37 +01:00

Replace GfxDrawString() with DrawText()

This commit is contained in:
Harry Hopkinson
2024-05-10 10:56:03 +01:00
committed by GitHub
parent 2d99e49a05
commit 98ac3a1bbc
21 changed files with 60 additions and 66 deletions

View File

@@ -323,7 +323,7 @@ void InGameConsole::Draw(DrawPixelInfo& dpi) const
{
const size_t index = i + _consoleScrollPos;
lineBuffer = _colourFormatStr + _consoleLines[index];
GfxDrawString(dpi, screenCoords, lineBuffer.c_str(), { textColour, InGameConsoleGetFontStyle() });
DrawText(dpi, screenCoords, { textColour, InGameConsoleGetFontStyle() }, lineBuffer.c_str());
screenCoords.y += lineHeight;
}