fixed overlapping skin name in the player settings

This commit is contained in:
oy 2010-08-07 20:52:33 +02:00
parent 0a66e0586d
commit 4322113435

View file

@ -139,7 +139,10 @@ void CMenus::RenderSettingsPlayer(CUIRect MainView)
Button.VSplitLeft(100.0f, 0, &Button);
str_format(aBuf, sizeof(aBuf), "%s", g_Config.m_PlayerSkin);
UI()->DoLabel(&Button, aBuf, 14.0, -1);
CTextCursor Cursor;
TextRender()->SetCursor(&Cursor, Button.x, Button.y, 14.0f, TEXTFLAG_RENDER|TEXTFLAG_STOP_AT_END);
Cursor.m_LineWidth = SkinRect.w-(Button.x-SkinRect.x)-5.0f;
TextRender()->TextEx(&Cursor, aBuf, -1);
}
RightView.HSplitTop(20.0f, &Button, &RightView);