summaryrefslogtreecommitdiff
path: root/apps/root_menu.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/root_menu.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/root_menu.c')
-rw-r--r--apps/root_menu.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/root_menu.c b/apps/root_menu.c
index 9d4f256370..3b0907f00a 100644
--- a/apps/root_menu.c
+++ b/apps/root_menu.c
@@ -46,6 +46,7 @@
46#include "buttonbar.h" 46#include "buttonbar.h"
47#include "action.h" 47#include "action.h"
48#include "yesno.h" 48#include "yesno.h"
49#include "viewport.h"
49 50
50#include "tree.h" 51#include "tree.h"
51#if CONFIG_TUNER 52#if CONFIG_TUNER
@@ -117,7 +118,6 @@ static int browser(void* param)
117 /* Now display progress until it's ready or the user exits */ 118 /* Now display progress until it's ready or the user exits */
118 while(!tagcache_is_usable()) 119 while(!tagcache_is_usable())
119 { 120 {
120 gui_syncstatusbar_draw(&statusbars, false);
121 struct tagcache_stat *stat = tagcache_get_stat(); 121 struct tagcache_stat *stat = tagcache_get_stat();
122 122
123 /* Allow user to exit */ 123 /* Allow user to exit */
@@ -262,6 +262,8 @@ static int wpsscrn(void* param)
262#if defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH > 1 262#if defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH > 1
263 show_remote_main_backdrop(); 263 show_remote_main_backdrop();
264#endif 264#endif
265 /* always re-enable the statusbar after the WPS */
266 viewportmanager_set_statusbar(true);
265 return ret_val; 267 return ret_val;
266} 268}
267#if CONFIG_TUNER 269#if CONFIG_TUNER