summaryrefslogtreecommitdiff
path: root/apps/screens.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2009-12-09 07:25:46 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2009-12-09 07:25:46 +0000
commitb2eb44ce0eb24632a46b0ea8c8c46a8f2ba35e24 (patch)
treeff3c0e14e9a53c08749ee1f233a5b1e887d3561a /apps/screens.c
parent85aad9b3972208b0e34ba0241ebb5314118ae05e (diff)
downloadrockbox-b2eb44ce0eb24632a46b0ea8c8c46a8f2ba35e24.tar.gz
rockbox-b2eb44ce0eb24632a46b0ea8c8c46a8f2ba35e24.zip
FS#10824 - viewport/statusbar API rework.
Hopefully the only user visible changes are: - fm and recording screens go by the statusbar setting (sbs or inbuilt) - plugins go back to using the theme as they should for menus and lists - splash screens might get cut a bit... entirely theme and splash dependant.. if there is a problematic one we can look at it later. - hopefully nothing more than very minor screen flickerings... let me know exactly where they are so they can be fixed New GUI screen rules: * Screens assume that the theme (sbs+ui viewport+ maybe background image) are always enabled. They may be disabled on a per display basis, but MUST be re-enabled on exit * Screens must not be coded in a way that requires a statusbar of any type.. the inbuilt bar will be removed shortly. ALWAYS RESPECT THE USERS SETTINGS unless the screen requires the full display to fit. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23904 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/screens.c')
-rw-r--r--apps/screens.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/screens.c b/apps/screens.c
index 565cf746d5..bed7d9d902 100644
--- a/apps/screens.c
+++ b/apps/screens.c
@@ -905,8 +905,7 @@ int calibrate(void)
905 int i, ret = 0; 905 int i, ret = 0;
906 906
907 /* hide the statusbar */ 907 /* hide the statusbar */
908 int old_statusbar = viewportmanager_get_statusbar(); 908 viewportmanager_theme_enable(SCREEN_MAIN, false, NULL);
909 viewportmanager_set_statusbar(VP_SB_HIDE_ALL);
910 909
911 touchscreen_disable_mapping(); /* set raw mode */ 910 touchscreen_disable_mapping(); /* set raw mode */
912 touchscreen_set_mode(TOUCHSCREEN_POINT); 911 touchscreen_set_mode(TOUCHSCREEN_POINT);
@@ -931,7 +930,7 @@ int calibrate(void)
931 sizeof(struct touchscreen_parameter)); 930 sizeof(struct touchscreen_parameter));
932 931
933 touchscreen_set_mode(old_mode); 932 touchscreen_set_mode(old_mode);
934 viewportmanager_set_statusbar(old_statusbar); 933 viewportmanager_theme_undo(SCREEN_MAIN);
935 934
936 settings_save(); 935 settings_save();
937 return ret; 936 return ret;