mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-22 18:58:21 +00:00
Change how MENU_ACTION_REFRESH gets invoked
This commit is contained in:
parent
4ba2722020
commit
f23962ff3b
@ -274,6 +274,7 @@ int menu_iterate(retro_input_t input,
|
||||
{
|
||||
static retro_time_t last_clock_update = 0;
|
||||
int32_t ret = 0;
|
||||
unsigned action = 0;
|
||||
runloop_t *runloop = rarch_main_get_ptr();
|
||||
menu_handle_t *menu = menu_driver_get_ptr();
|
||||
settings_t *settings = config_get_ptr();
|
||||
@ -294,7 +295,12 @@ int menu_iterate(retro_input_t input,
|
||||
last_clock_update = menu->cur_time;
|
||||
}
|
||||
|
||||
menu_entry_iterate(menu->input.joypad);
|
||||
action = menu->input.joypad;
|
||||
|
||||
if (menu->need_refresh && !menu->nonblocking_refresh && action != MENU_ACTION_MESSAGE)
|
||||
action = MENU_ACTION_REFRESH;
|
||||
|
||||
menu_entry_iterate(action);
|
||||
|
||||
if (runloop->is_menu && !runloop->is_idle)
|
||||
menu_display_fb();
|
||||
|
@ -528,9 +528,6 @@ static int action_iterate_main(const char *label, unsigned action)
|
||||
return action_iterate_custom_bind(label, action);
|
||||
}
|
||||
|
||||
if (menu->need_refresh && !menu->nonblocking_refresh && action != MENU_ACTION_MESSAGE)
|
||||
action = MENU_ACTION_REFRESH;
|
||||
|
||||
ret = action_iterate_switch(action);
|
||||
|
||||
if (ret)
|
||||
|
@ -413,9 +413,6 @@ int menu_entry_select(uint32_t i)
|
||||
action = MENU_ACTION_RIGHT;
|
||||
}
|
||||
|
||||
if (menu->need_refresh && !menu->nonblocking_refresh && action != MENU_ACTION_MESSAGE)
|
||||
action = MENU_ACTION_REFRESH;
|
||||
|
||||
if (action != MENU_ACTION_NOOP)
|
||||
return menu_entry_action(&entry, i, action);
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user