mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +00:00
Do refresh at end of menu_entry_action
This commit is contained in:
parent
1d1cda5cde
commit
7e2a25f232
@ -358,15 +358,6 @@ int menu_entry_action(menu_entry_t *entry, unsigned i, enum menu_action action)
|
|||||||
menu_list_t *menu_list = menu_list_get_ptr();
|
menu_list_t *menu_list = menu_list_get_ptr();
|
||||||
menu_file_list_cbs_t *cbs = menu_list_get_actiondata_at_offset(menu_list->selection_buf, i);
|
menu_file_list_cbs_t *cbs = menu_list_get_actiondata_at_offset(menu_list->selection_buf, i);
|
||||||
|
|
||||||
if (menu_entries_needs_refresh())
|
|
||||||
{
|
|
||||||
if (cbs && cbs->action_refresh)
|
|
||||||
{
|
|
||||||
cbs->action_refresh(menu_list->selection_buf, menu_list->menu_stack);
|
|
||||||
menu_entries_unset_refresh(false);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
switch (action)
|
switch (action)
|
||||||
{
|
{
|
||||||
case MENU_ACTION_UP:
|
case MENU_ACTION_UP:
|
||||||
@ -434,5 +425,14 @@ int menu_entry_action(menu_entry_t *entry, unsigned i, enum menu_action action)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (menu_entries_needs_refresh())
|
||||||
|
{
|
||||||
|
if (cbs && cbs->action_refresh)
|
||||||
|
{
|
||||||
|
cbs->action_refresh(menu_list->selection_buf, menu_list->menu_stack);
|
||||||
|
menu_entries_unset_refresh(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user