summaryrefslogtreecommitdiffstats
path: root/apps/menu.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-07-11 01:23:57 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-07-11 01:23:57 +0000
commitb9f22af85a04cc89913090a9d145ead055f38b43 (patch)
tree1ee5a8af71323526d4d27c6214c9b27a8ab208ac /apps/menu.c
parent00b16fab6c972fa45c46c56521adb7c1c79d0490 (diff)
downloadrockbox-b9f22af85a04cc89913090a9d145ead055f38b43.tar.gz
rockbox-b9f22af85a04cc89913090a9d145ead055f38b43.tar.bz2
rockbox-b9f22af85a04cc89913090a9d145ead055f38b43.zip
Redraw the menus once every action, not 3 times
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13847 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/menu.c')
-rw-r--r--apps/menu.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/menu.c b/apps/menu.c
index 8720ea6062..5386353e12 100644
--- a/apps/menu.c
+++ b/apps/menu.c
@@ -422,7 +422,6 @@ int do_menu(const struct menu_item_ex *start_menu, int *start_selected)
{
continue;
}
- gui_synclist_draw(&lists);
if (menu_callback)
{
@@ -438,9 +437,11 @@ int do_menu(const struct menu_item_ex *start_menu, int *start_selected)
if (gui_synclist_do_button(&lists,action,LIST_WRAP_UNLESS_HELD))
{
- talk_item = true;
+ talk_menu_item(menu, &lists);
+ continue;
}
- else if (action == ACTION_TREE_WPS)
+
+ if (action == ACTION_TREE_WPS)
{
ret = GO_TO_PREVIOUS_MUSIC;
done = true;
@@ -594,7 +595,6 @@ int do_menu(const struct menu_item_ex *start_menu, int *start_selected)
gui_buttonbar_set(&buttonbar, "<<<", "", "");
gui_buttonbar_draw(&buttonbar);
#endif
- gui_synclist_draw(&lists);
}
else if(default_event_handler(action) == SYS_USB_CONNECTED)
{