forked from len0rd/rockbox
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:
parent
00b16fab6c
commit
b9f22af85a
1 changed files with 4 additions and 4 deletions
|
|
@ -422,7 +422,6 @@ int do_menu(const struct menu_item_ex *start_menu, int *start_selected)
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
gui_synclist_draw(&lists);
|
|
||||||
|
|
||||||
if (menu_callback)
|
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))
|
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;
|
ret = GO_TO_PREVIOUS_MUSIC;
|
||||||
done = true;
|
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_set(&buttonbar, "<<<", "", "");
|
||||||
gui_buttonbar_draw(&buttonbar);
|
gui_buttonbar_draw(&buttonbar);
|
||||||
#endif
|
#endif
|
||||||
gui_synclist_draw(&lists);
|
|
||||||
}
|
}
|
||||||
else if(default_event_handler(action) == SYS_USB_CONNECTED)
|
else if(default_event_handler(action) == SYS_USB_CONNECTED)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue