mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
fixed #479 (chat overlaps when text is 3 lines long)
This commit is contained in:
parent
3c2cd35056
commit
1d094181ed
|
@ -167,7 +167,7 @@ void CHAT::on_render()
|
|||
// get the y offset
|
||||
TEXT_CURSOR cursor;
|
||||
gfx_text_set_cursor(&cursor, begin, 0, fontsize, 0);
|
||||
cursor.line_width = 300.0f;
|
||||
cursor.line_width = 200.0f;
|
||||
gfx_text_ex(&cursor, lines[r].name, -1);
|
||||
gfx_text_ex(&cursor, lines[r].text, -1);
|
||||
y -= cursor.y + cursor.font_size;
|
||||
|
|
Loading…
Reference in a new issue