diff options
| author | oy <Tom_Adams@web.de> | 2011-05-03 23:30:50 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2011-05-03 23:30:50 +0200 |
| commit | 41ebc9bc9d9bdda650799a6c9dc9a5ed15a55430 (patch) | |
| tree | 9e6b7f4f73ccb179d6a6c42b16ad584e163a9042 /src/game/client/components | |
| parent | ed7af20dabc2f3e3e40406f4b5ac1ce587ee9c79 (diff) | |
| download | zcatch-41ebc9bc9d9bdda650799a6c9dc9a5ed15a55430.tar.gz zcatch-41ebc9bc9d9bdda650799a6c9dc9a5ed15a55430.zip | |
fixed cursor marker position in console
Diffstat (limited to 'src/game/client/components')
| -rw-r--r-- | src/game/client/components/console.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/client/components/console.cpp b/src/game/client/components/console.cpp index 33c6db43..5bc2eadd 100644 --- a/src/game/client/components/console.cpp +++ b/src/game/client/components/console.cpp @@ -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); |