mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-18 14:08:19 +00:00
Fix height of controller settings with exactly 1 controller
The controller name is also shown if there is only exactly one controller connected, but the height was not increased for the additional row.
This commit is contained in:
parent
d34fc96049
commit
b8cb67379c
|
@ -1066,12 +1066,9 @@ float CMenus::RenderSettingsControlsJoystick(CUIRect View)
|
||||||
int NumOptions = 1; // expandable header
|
int NumOptions = 1; // expandable header
|
||||||
if(JoystickEnabled)
|
if(JoystickEnabled)
|
||||||
{
|
{
|
||||||
if(NumJoysticks == 0)
|
NumOptions++; // message or joystick name/selection
|
||||||
NumOptions++; // message
|
if(NumJoysticks > 0)
|
||||||
else
|
|
||||||
{
|
{
|
||||||
if(NumJoysticks > 1)
|
|
||||||
NumOptions++; // joystick selection
|
|
||||||
NumOptions += 3; // mode, ui sens, tolerance
|
NumOptions += 3; // mode, ui sens, tolerance
|
||||||
if(!g_Config.m_InpControllerAbsolute)
|
if(!g_Config.m_InpControllerAbsolute)
|
||||||
NumOptions++; // ingame sens
|
NumOptions++; // ingame sens
|
||||||
|
|
Loading…
Reference in a new issue