summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2020-07-20 00:40:03 -0400
committerWilliam Wilgus <wilgus.william@gmail.com>2020-07-20 00:40:03 -0400
commit2b1de3d3369e7491ef6cc05533ce7ca91bb6aa7e (patch)
treeb2f649c7fa9091b99566249869a95db118e8fdf9
parentc84f9252d70465069235bcd4776721a6eaefcdde (diff)
downloadrockbox-2b1de3d.tar.gz
rockbox-2b1de3d.tar.bz2
rockbox-2b1de3d.zip
menu.c fix redraw bug
fix redraw bug added with c39f95465 Change-Id: I9ce232d4b760f20edb6f8274e090d2fd67c8bd78
-rw-r--r--apps/menu.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/menu.c b/apps/menu.c
index 5a388522fa..c1af044374 100644
--- a/apps/menu.c
+++ b/apps/menu.c
@@ -730,11 +730,11 @@ int do_menu(const struct menu_item_ex *start_menu, int *start_selected,
if (redraw_lists && !done)
{
if (menu_callback)
- if (menu_callback(ACTION_REDRAW, menu, &lists) == ACTION_REDRAW)
- {
- gui_synclist_draw(&lists);
- gui_synclist_speak_item(&lists);
- }
+ if (menu_callback(ACTION_REDRAW, menu, &lists) != ACTION_REDRAW)
+ continue;
+
+ gui_synclist_draw(&lists);
+ gui_synclist_speak_item(&lists);
}
}