From 377004dbf77c3d0d2bb67309c56782534d87260b Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 26 Sep 2015 22:45:00 +0200 Subject: [PATCH] (menu_iterate.c) Cleanup --- menu/menu_iterate.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/menu/menu_iterate.c b/menu/menu_iterate.c index 2d43355bd3..e028e91325 100644 --- a/menu/menu_iterate.c +++ b/menu/menu_iterate.c @@ -432,12 +432,9 @@ int menu_iterate(bool render_this_frame, unsigned action) if (!menu_navigation_ctl(MENU_NAVIGATION_CTL_GET_SELECTION, &selection)) return 0; - menu->state = 0; - - menu->menu_state.msg[0] = '\0'; - - hash = menu_hash_calculate(label); - + menu->state = 0; + menu->menu_state.msg[0] = '\0'; + hash = menu_hash_calculate(label); iterate_type = action_iterate_type(hash); if (action != MENU_ACTION_NOOP || menu_entries_needs_refresh() || menu_display_ctl(MENU_DISPLAY_CTL_UPDATE_PENDING, NULL)) @@ -546,6 +543,7 @@ int menu_iterate_render(void) { if (driver->render_messagebox) driver->render_messagebox(menu->menu_state.msg); + if (ui_companion_is_on_foreground()) { const ui_companion_driver_t *ui = ui_companion_get_ptr();