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:
Ted John 2016-10-02 11:33:16 +01:00
parent 20d3b070bb
commit 42580af498
1 changed files with 1 additions and 0 deletions

View File

@ -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);