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