Redraw the menus once every action, not 3 times

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13847 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2007-07-11 01:23:57 +00:00
parent 00b16fab6c
commit b9f22af85a

View file

@ -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)
{