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:
heinrich5991 2024-05-12 01:26:08 +00:00 committed by GitHub
commit acde8806db
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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