mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
fixed cursor marker position in console
This commit is contained in:
parent
ed7af20dab
commit
41ebc9bc9d
|
@ -446,7 +446,9 @@ void CGameConsole::OnRender()
|
|||
}
|
||||
|
||||
TextRender()->TextEx(&Cursor, aInputString, pConsole->m_Input.GetCursorOffset());
|
||||
static float MarkerOffset = TextRender()->TextWidth(0, FontSize, "|", -1)/3;
|
||||
CTextCursor Marker = Cursor;
|
||||
Marker.m_X -= MarkerOffset;
|
||||
TextRender()->TextEx(&Marker, "|", -1);
|
||||
TextRender()->TextEx(&Cursor, aInputString+pConsole->m_Input.GetCursorOffset(), -1);
|
||||
|
||||
|
|
Loading…
Reference in a new issue