summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Purchase <shotofadds@rockbox.org>2009-11-04 23:57:37 +0000
committerRob Purchase <shotofadds@rockbox.org>2009-11-04 23:57:37 +0000
commitaee58ef956e69428ec8de7c956224849a453a02e (patch)
treecfa028c96a7e9ef722c7e36d3ec2b8d39ad66fb5
parent27f17877be7db35e1455a90a67908b577d3add1d (diff)
downloadrockbox-aee58ef956e69428ec8de7c956224849a453a02e.tar.gz
rockbox-aee58ef956e69428ec8de7c956224849a453a02e.zip
Fix hiding the status bar in the touchscreen calibration screen.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23530 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/screens.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/screens.c b/apps/screens.c
index 9edda1ad43..565cf746d5 100644
--- a/apps/screens.c
+++ b/apps/screens.c
@@ -903,8 +903,10 @@ int calibrate(void)
903 enum touchscreen_mode old_mode = touchscreen_get_mode(); 903 enum touchscreen_mode old_mode = touchscreen_get_mode();
904 struct touchscreen_calibration cal; 904 struct touchscreen_calibration cal;
905 int i, ret = 0; 905 int i, ret = 0;
906 int statusbar = global_settings.statusbar; /* hide the statusbar */ 906
907 global_settings.statusbar = STATUSBAR_OFF; 907 /* hide the statusbar */
908 int old_statusbar = viewportmanager_get_statusbar();
909 viewportmanager_set_statusbar(VP_SB_HIDE_ALL);
908 910
909 touchscreen_disable_mapping(); /* set raw mode */ 911 touchscreen_disable_mapping(); /* set raw mode */
910 touchscreen_set_mode(TOUCHSCREEN_POINT); 912 touchscreen_set_mode(TOUCHSCREEN_POINT);
@@ -929,7 +931,7 @@ int calibrate(void)
929 sizeof(struct touchscreen_parameter)); 931 sizeof(struct touchscreen_parameter));
930 932
931 touchscreen_set_mode(old_mode); 933 touchscreen_set_mode(old_mode);
932 global_settings.statusbar = statusbar; 934 viewportmanager_set_statusbar(old_statusbar);
933 935
934 settings_save(); 936 settings_save();
935 return ret; 937 return ret;