(Menu) Refactor MENU_SETTINGS_TOGGLE_FULLSCREEN`
This commit is contained in:
parent
cecdee7f54
commit
63a2f5b885
|
@ -4471,14 +4471,7 @@ static int menu_common_setting_set(unsigned setting, unsigned action)
|
||||||
|
|
||||||
case MENU_SETTINGS_TOGGLE_FULLSCREEN:
|
case MENU_SETTINGS_TOGGLE_FULLSCREEN:
|
||||||
if ((current_setting = setting_data_find_setting(setting_data, "video_fullscreen")))
|
if ((current_setting = setting_data_find_setting(setting_data, "video_fullscreen")))
|
||||||
{
|
menu_common_setting_set_current_boolean(current_setting, action);
|
||||||
if (action == MENU_ACTION_OK)
|
|
||||||
{
|
|
||||||
*current_setting->value.boolean = !(*current_setting->value.boolean);
|
|
||||||
if (current_setting->change_handler)
|
|
||||||
current_setting->change_handler(current_setting);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
#if defined(GEKKO)
|
#if defined(GEKKO)
|
||||||
|
|
Loading…
Reference in New Issue