diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2008-12-31 05:59:26 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2008-12-31 05:59:26 +0000 |
commit | e385ee18ce501e26189d5a2a68d092104720df30 (patch) | |
tree | 5219051887835d9750d80f71d9849ceb3aa65d82 /apps/recorder/radio.c | |
parent | 54919ae9176bd9cbffc8412f0c831f471b8ac4d5 (diff) | |
download | rockbox-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/recorder/radio.c')
-rw-r--r-- | apps/recorder/radio.c | 5 |
1 files changed, 0 insertions, 5 deletions
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) | |||
489 | /* always display status bar in radio screen for now */ | 489 | /* always display status bar in radio screen for now */ |
490 | global_status.statusbar_forced = statusbar?0:1; | 490 | global_status.statusbar_forced = statusbar?0:1; |
491 | global_settings.statusbar = true; | 491 | global_settings.statusbar = true; |
492 | gui_syncstatusbar_draw(&statusbars,true); | ||
493 | FOR_NB_SCREENS(i) | 492 | FOR_NB_SCREENS(i) |
494 | { | 493 | { |
495 | viewport_set_defaults(&vp[i], i); | 494 | viewport_set_defaults(&vp[i], i); |
@@ -986,8 +985,6 @@ int radio_screen(void) | |||
986 | gui_buttonbar_draw(&buttonbar); | 985 | gui_buttonbar_draw(&buttonbar); |
987 | #endif | 986 | #endif |
988 | } | 987 | } |
989 | /* Only force the redraw if update_screen is true */ | ||
990 | gui_syncstatusbar_draw(&statusbars,true); | ||
991 | } | 988 | } |
992 | 989 | ||
993 | update_screen = false; | 990 | update_screen = false; |
@@ -1027,7 +1024,6 @@ int radio_screen(void) | |||
1027 | if(audio_status() & AUDIO_STATUS_ERROR) | 1024 | if(audio_status() & AUDIO_STATUS_ERROR) |
1028 | { | 1025 | { |
1029 | splash(0, str(LANG_DISK_FULL)); | 1026 | splash(0, str(LANG_DISK_FULL)); |
1030 | gui_syncstatusbar_draw(&statusbars,true); | ||
1031 | FOR_NB_SCREENS(i) | 1027 | FOR_NB_SCREENS(i) |
1032 | { | 1028 | { |
1033 | screens[i].set_viewport(&vp[i]); | 1029 | screens[i].set_viewport(&vp[i]); |
@@ -1397,7 +1393,6 @@ static int handle_radio_presets(void) | |||
1397 | while (result == 0) | 1393 | while (result == 0) |
1398 | { | 1394 | { |
1399 | gui_synclist_draw(&lists); | 1395 | gui_synclist_draw(&lists); |
1400 | gui_syncstatusbar_draw(&statusbars, true); | ||
1401 | list_do_action(CONTEXT_STD, TIMEOUT_BLOCK, | 1396 | list_do_action(CONTEXT_STD, TIMEOUT_BLOCK, |
1402 | &lists, &action, LIST_WRAP_UNLESS_HELD); | 1397 | &lists, &action, LIST_WRAP_UNLESS_HELD); |
1403 | switch (action) | 1398 | switch (action) |