mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Merge pull request #8354 from Robyt3/Menus-Settings-Controller-Size-Fix
Fix height of controller settings with exactly 1 controller
This commit is contained in:
commit
acde8806db
|
@ -1066,12 +1066,9 @@ float CMenus::RenderSettingsControlsJoystick(CUIRect View)
|
|||
int NumOptions = 1; // expandable header
|
||||
if(JoystickEnabled)
|
||||
{
|
||||
if(NumJoysticks == 0)
|
||||
NumOptions++; // message
|
||||
else
|
||||
NumOptions++; // message or joystick name/selection
|
||||
if(NumJoysticks > 0)
|
||||
{
|
||||
if(NumJoysticks > 1)
|
||||
NumOptions++; // joystick selection
|
||||
NumOptions += 3; // mode, ui sens, tolerance
|
||||
if(!g_Config.m_InpControllerAbsolute)
|
||||
NumOptions++; // ingame sens
|
||||
|
|
Loading…
Reference in a new issue