1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-31 02:35:46 +01:00

Make gfx_draw_string() take a TextPaint argument

This commit is contained in:
Gymnasiast
2021-02-27 18:35:32 +01:00
parent 503273793a
commit c40701d997
22 changed files with 59 additions and 53 deletions

View File

@@ -288,7 +288,7 @@ static int32_t chat_history_draw_string(
auto lineY = screenCoords.y;
for (int32_t line = 0; line <= numLines; ++line)
{
gfx_draw_string(dpi, buffer, TEXT_COLOUR_254, { screenCoords.x, lineY - (numLines * lineHeight) });
gfx_draw_string(dpi, { screenCoords.x, lineY - (numLines * lineHeight) }, buffer, { TEXT_COLOUR_254 });
buffer = get_string_end(buffer) + 1;
lineY += lineHeight;
}