fixed so ui_scale is affected on server's name (fixes #43)

This commit is contained in:
Choupom 2010-11-20 14:57:38 +01:00 committed by oy
parent 38c2a1b45c
commit 0aa0a56990

View file

@ -299,7 +299,7 @@ void CMenus::RenderServerbrowserServerList(CUIRect View)
else if(Id == COL_NAME) else if(Id == COL_NAME)
{ {
CTextCursor Cursor; CTextCursor Cursor;
TextRender()->SetCursor(&Cursor, Button.x, Button.y, 12.0f, TEXTFLAG_RENDER|TEXTFLAG_STOP_AT_END); TextRender()->SetCursor(&Cursor, Button.x, Button.y, 12.0f * UI()->Scale(), TEXTFLAG_RENDER|TEXTFLAG_STOP_AT_END);
Cursor.m_LineWidth = Button.w; Cursor.m_LineWidth = Button.w;
if(g_Config.m_BrFilterString[0] && (pItem->m_QuickSearchHit&IServerBrowser::QUICK_SERVERNAME)) if(g_Config.m_BrFilterString[0] && (pItem->m_QuickSearchHit&IServerBrowser::QUICK_SERVERNAME))