summaryrefslogtreecommitdiff
path: root/apps/playlist_viewer.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2008-12-31 05:59:26 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2008-12-31 05:59:26 +0000
commite385ee18ce501e26189d5a2a68d092104720df30 (patch)
tree5219051887835d9750d80f71d9849ceb3aa65d82 /apps/playlist_viewer.c
parent54919ae9176bd9cbffc8412f0c831f471b8ac4d5 (diff)
downloadrockbox-e385ee18ce501e26189d5a2a68d092104720df30.tar.gz
rockbox-e385ee18ce501e26189d5a2a68d092104720df30.zip
Decouple the statusbar drawing from the rest of the screen drawing. it is not drawn roughly 4x per second automatically.
viewport_Set_defaults() will setup the given viewport with the correct "full screen" dimensions (so start at 0,0 if statusbars are disabled or 0,8 if they are enabled.) All screens should keep the statusbar enabled, but if you really want to ignore the user setting you can disbaled it with viewportmanager_set_statusbar(false). This commit also includes some menu/list viewport cleanups from kugel in FS#9603 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19622 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/playlist_viewer.c')
-rw-r--r--apps/playlist_viewer.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/apps/playlist_viewer.c b/apps/playlist_viewer.c
index 2acc02abe4..30dcfd0a1c 100644
--- a/apps/playlist_viewer.c
+++ b/apps/playlist_viewer.c
@@ -746,10 +746,6 @@ bool playlist_viewer_ex(const char* filename)
746 gui_synclist_draw(&playlist_lists); 746 gui_synclist_draw(&playlist_lists);
747 break; 747 break;
748 748
749 case ACTION_NONE:
750 gui_syncstatusbar_draw(&statusbars, false);
751 break;
752
753 default: 749 default:
754 if(default_event_handler(button) == SYS_USB_CONNECTED) 750 if(default_event_handler(button) == SYS_USB_CONNECTED)
755 { 751 {
@@ -834,7 +830,6 @@ bool search_playlist(void)
834 gui_synclist_draw(&playlist_lists); 830 gui_synclist_draw(&playlist_lists);
835 while (!exit) 831 while (!exit)
836 { 832 {
837 gui_syncstatusbar_draw(&statusbars, false);
838 button = get_action(CONTEXT_LIST, HZ/4); 833 button = get_action(CONTEXT_LIST, HZ/4);
839 if (gui_synclist_do_button(&playlist_lists, &button, LIST_WRAP_UNLESS_HELD)) 834 if (gui_synclist_do_button(&playlist_lists, &button, LIST_WRAP_UNLESS_HELD))
840 continue; 835 continue;