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
This commit is contained in:
Rob Purchase 2009-11-04 23:57:37 +00:00
parent 27f17877be
commit aee58ef956

View file

@ -903,8 +903,10 @@ int calibrate(void)
enum touchscreen_mode old_mode = touchscreen_get_mode(); enum touchscreen_mode old_mode = touchscreen_get_mode();
struct touchscreen_calibration cal; struct touchscreen_calibration cal;
int i, ret = 0; int i, ret = 0;
int statusbar = global_settings.statusbar; /* hide the statusbar */
global_settings.statusbar = STATUSBAR_OFF; /* hide the statusbar */
int old_statusbar = viewportmanager_get_statusbar();
viewportmanager_set_statusbar(VP_SB_HIDE_ALL);
touchscreen_disable_mapping(); /* set raw mode */ touchscreen_disable_mapping(); /* set raw mode */
touchscreen_set_mode(TOUCHSCREEN_POINT); touchscreen_set_mode(TOUCHSCREEN_POINT);
@ -929,7 +931,7 @@ int calibrate(void)
sizeof(struct touchscreen_parameter)); sizeof(struct touchscreen_parameter));
touchscreen_set_mode(old_mode); touchscreen_set_mode(old_mode);
global_settings.statusbar = statusbar; viewportmanager_set_statusbar(old_statusbar);
settings_save(); settings_save();
return ret; return ret;