diff options
| author | Tom Adams <Tom_Adams@web.de> | 2010-05-30 14:26:04 +0000 |
|---|---|---|
| committer | Tom Adams <Tom_Adams@web.de> | 2010-05-30 14:26:04 +0000 |
| commit | 08df0fe63de3f58301eedbf3118b5513fba2edbc (patch) | |
| tree | 19845154aa3ac2b9fb232a26194d5d9d68a9198c /src/game/client/components | |
| parent | 361380d63039737df51c1ed684d5f70758c96790 (diff) | |
| download | zcatch-08df0fe63de3f58301eedbf3118b5513fba2edbc.tar.gz zcatch-08df0fe63de3f58301eedbf3118b5513fba2edbc.zip | |
added fix for italian translation by Lanta
Diffstat (limited to 'src/game/client/components')
| -rw-r--r-- | src/game/client/components/menus.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/client/components/menus.cpp b/src/game/client/components/menus.cpp index 29063b80..585c6d7a 100644 --- a/src/game/client/components/menus.cpp +++ b/src/game/client/components/menus.cpp @@ -320,7 +320,7 @@ int CMenus::DoEditBox(void *pID, const CUIRect *pRect, char *pStr, unsigned StrS float w = TextRender()->TextWidth(0, FontSize, pDisplayStr, s_AtIndex); Textbox = *pRect; Textbox.VSplitLeft(2.0f, 0, &Textbox); - Textbox.x += (w-*Offset)*UI()->Scale(); + Textbox.x += (w-*Offset-TextRender()->TextWidth(0, FontSize, "|", -1)/2)*UI()->Scale(); if((2*time_get()/time_freq()) % 2) // make it blink UI()->DoLabel(&Textbox, "|", FontSize, -1); |