From e385ee18ce501e26189d5a2a68d092104720df30 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Wed, 31 Dec 2008 05:59:26 +0000 Subject: 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 --- apps/recorder/radio.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'apps/recorder/radio.c') diff --git a/apps/recorder/radio.c b/apps/recorder/radio.c index a6213abfb1..d01d24ccf2 100644 --- a/apps/recorder/radio.c +++ b/apps/recorder/radio.c @@ -489,7 +489,6 @@ int radio_screen(void) /* always display status bar in radio screen for now */ global_status.statusbar_forced = statusbar?0:1; global_settings.statusbar = true; - gui_syncstatusbar_draw(&statusbars,true); FOR_NB_SCREENS(i) { viewport_set_defaults(&vp[i], i); @@ -986,8 +985,6 @@ int radio_screen(void) gui_buttonbar_draw(&buttonbar); #endif } - /* Only force the redraw if update_screen is true */ - gui_syncstatusbar_draw(&statusbars,true); } update_screen = false; @@ -1027,7 +1024,6 @@ int radio_screen(void) if(audio_status() & AUDIO_STATUS_ERROR) { splash(0, str(LANG_DISK_FULL)); - gui_syncstatusbar_draw(&statusbars,true); FOR_NB_SCREENS(i) { screens[i].set_viewport(&vp[i]); @@ -1397,7 +1393,6 @@ static int handle_radio_presets(void) while (result == 0) { gui_synclist_draw(&lists); - gui_syncstatusbar_draw(&statusbars, true); list_do_action(CONTEXT_STD, TIMEOUT_BLOCK, &lists, &action, LIST_WRAP_UNLESS_HELD); switch (action) -- cgit v1.2.3