mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-12 19:18:20 +00:00
fixed marker position in chat
This commit is contained in:
parent
fd965ca4b2
commit
eae1a97297
|
@ -380,7 +380,9 @@ void CChat::OnRender()
|
||||||
}
|
}
|
||||||
|
|
||||||
TextRender()->TextEx(&Cursor, m_Input.GetString()+m_ChatStringOffset, m_Input.GetCursorOffset()-m_ChatStringOffset);
|
TextRender()->TextEx(&Cursor, m_Input.GetString()+m_ChatStringOffset, m_Input.GetCursorOffset()-m_ChatStringOffset);
|
||||||
|
static float MarkerOffset = TextRender()->TextWidth(0, 8.0f, "|", -1)/3;
|
||||||
CTextCursor Marker = Cursor;
|
CTextCursor Marker = Cursor;
|
||||||
|
Marker.m_X -= MarkerOffset;
|
||||||
TextRender()->TextEx(&Marker, "|", -1);
|
TextRender()->TextEx(&Marker, "|", -1);
|
||||||
TextRender()->TextEx(&Cursor, m_Input.GetString()+m_Input.GetCursorOffset(), -1);
|
TextRender()->TextEx(&Cursor, m_Input.GetString()+m_Input.GetCursorOffset(), -1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue