summaryrefslogtreecommitdiff
path: root/apps/tree.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/tree.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/tree.c')
-rw-r--r--apps/tree.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/apps/tree.c b/apps/tree.c
index a3765d74d3..6e05cb5eb0 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -473,7 +473,6 @@ static int update_dir(void)
473#endif 473#endif
474 gui_synclist_draw(&tree_lists); 474 gui_synclist_draw(&tree_lists);
475 gui_synclist_speak_item(&tree_lists); 475 gui_synclist_speak_item(&tree_lists);
476 gui_syncstatusbar_draw(&statusbars, true);
477 return tc.filesindir; 476 return tc.filesindir;
478} 477}
479 478
@@ -600,7 +599,7 @@ static int dirbrowse()
600{ 599{
601 int numentries=0; 600 int numentries=0;
602 char buf[MAX_PATH]; 601 char buf[MAX_PATH];
603 unsigned button, oldbutton; 602 int button, oldbutton;
604 bool reload_root = false; 603 bool reload_root = false;
605 int lastfilter = *tc.dirfilter; 604 int lastfilter = *tc.dirfilter;
606 bool lastsortcase = global_settings.sort_case; 605 bool lastsortcase = global_settings.sort_case;
@@ -797,10 +796,6 @@ static int dirbrowse()
797 break; 796 break;
798 } 797 }
799 798
800 case ACTION_NONE:
801 gui_syncstatusbar_draw(&statusbars, false);
802 break;
803
804#ifdef HAVE_HOTSWAP 799#ifdef HAVE_HOTSWAP
805 case SYS_FS_CHANGED: 800 case SYS_FS_CHANGED:
806#ifdef HAVE_TAGCACHE 801#ifdef HAVE_TAGCACHE