From eecdff0cf5c5153cc55c74e6227a2fd9b7068923 Mon Sep 17 00:00:00 2001 From: oy Date: Tue, 7 Sep 2010 19:31:20 +0200 Subject: [PATCH] fixed overlapping in last commit --- src/game/client/components/menus_demo.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game/client/components/menus_demo.cpp b/src/game/client/components/menus_demo.cpp index 526ff0a98..6c5dcbe4c 100644 --- a/src/game/client/components/menus_demo.cpp +++ b/src/game/client/components/menus_demo.cpp @@ -70,7 +70,7 @@ void CMenus::RenderDemoPlayer(CUIRect MainView) MainView.HSplitTop(SeekBarHeight, &SeekBar, &ButtonBar); ButtonBar.HSplitTop(Margins, 0, &ButtonBar); ButtonBar.HSplitBottom(NameBarHeight, &ButtonBar, &NameBar); - NameBar.HSplitTop(3.5f, 0, &NameBar); + NameBar.HSplitTop(4.0f, 0, &NameBar); } else SeekBar = MainView; @@ -207,8 +207,8 @@ void CMenus::RenderDemoPlayer(CUIRect MainView) char aBuf[128]; str_format(aBuf, sizeof(aBuf), "Demofile: %s", DemoPlayer()->GetDemoName()); CTextCursor Cursor; - TextRender()->SetCursor(&Cursor, NameBar.x, NameBar.y, Button.h*0.7f, TEXTFLAG_RENDER|TEXTFLAG_STOP_AT_END); - Cursor.m_LineWidth = 450.0f; + TextRender()->SetCursor(&Cursor, NameBar.x, NameBar.y, Button.h*0.5f, TEXTFLAG_RENDER|TEXTFLAG_STOP_AT_END); + Cursor.m_LineWidth = MainView.w; TextRender()->TextEx(&Cursor, aBuf, -1); } }