mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-23 03:10:14 +00:00
(Menu) Cleanup VIDEO_SWAP_INTERVAL setting
This commit is contained in:
parent
aa1c0fe634
commit
3fa496b9b4
@ -4675,32 +4675,8 @@ static int menu_common_setting_set(unsigned setting, unsigned action)
|
||||
break;
|
||||
case MENU_SETTINGS_VIDEO_SWAP_INTERVAL:
|
||||
if ((current_setting = setting_data_find_setting(setting_data, "video_swap_interval")))
|
||||
{
|
||||
switch (action)
|
||||
{
|
||||
case MENU_ACTION_START:
|
||||
*current_setting->value.unsigned_integer = 1;
|
||||
break;
|
||||
|
||||
case MENU_ACTION_LEFT:
|
||||
*current_setting->value.unsigned_integer = *current_setting->value.unsigned_integer - 1;
|
||||
break;
|
||||
|
||||
case MENU_ACTION_RIGHT:
|
||||
case MENU_ACTION_OK:
|
||||
*current_setting->value.unsigned_integer = *current_setting->value.unsigned_integer + 1;
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
if (current_setting->change_handler)
|
||||
current_setting->change_handler(current_setting);
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
menu_common_setting_set_current_unsigned_integer(current_setting, 1, action, true, true);
|
||||
break;
|
||||
case MENU_SETTINGS_VIDEO_HARD_SYNC_FRAMES:
|
||||
if ((current_setting = setting_data_find_setting(setting_data, "video_hard_sync_frames")))
|
||||
menu_common_setting_set_current_unsigned_integer(current_setting, 1, action, true, true);
|
||||
|
Loading…
Reference in New Issue
Block a user