mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix #4304: Improve the chat improvement/coloring
Colour codes were being prepended to the line string but draw string was not given the start of the buffer.
This commit is contained in:
parent
20d3b070bb
commit
42580af498
|
@ -152,6 +152,7 @@ void chat_draw(rct_drawpixelinfo * dpi)
|
|||
safe_strcpy(lineCh, _chatCurrentLine, sizeof(_chatCurrentLine));
|
||||
y = _chatBottom - inputLineHeight - 5;
|
||||
|
||||
lineCh = lineBuffer;
|
||||
int inputLineHeight = gfx_draw_string_left_wrapped(dpi, (void*)&lineCh, x, y + 3, _chatWidth - 10, STR_STRING, 255);
|
||||
gfx_set_dirty_blocks(x, y, x + _chatWidth, y + inputLineHeight + 15);
|
||||
|
||||
|
|
Loading…
Reference in New Issue