mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
Merge pull request #2040 from nheir/fix/scroll_detail_scoreboard
fix scrollbar in serverbrowser's detail scoreboard
This commit is contained in:
commit
ea4427d4ea
|
@ -2022,7 +2022,7 @@ void CMenus::RenderDetailScoreboard(CUIRect View, const CServerInfo *pInfo, int
|
|||
}
|
||||
else
|
||||
{
|
||||
float Width = RowWidth * ceil(pInfo->m_NumClients / RowCount);
|
||||
float Width = RowWidth * ((pInfo->m_NumClients+RowCount-1) / RowCount);
|
||||
static float s_ScrollValue = 0.0f;
|
||||
if(Width > View.w)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue