fixed cursor marker position in console

This commit is contained in:
oy 2011-05-03 23:30:50 +02:00
parent ed7af20dab
commit 41ebc9bc9d

View file

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