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:
parent
27f17877be
commit
aee58ef956
1 changed files with 5 additions and 3 deletions
|
@ -903,8 +903,10 @@ int calibrate(void)
|
|||
enum touchscreen_mode old_mode = touchscreen_get_mode();
|
||||
struct touchscreen_calibration cal;
|
||||
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_set_mode(TOUCHSCREEN_POINT);
|
||||
|
@ -929,7 +931,7 @@ int calibrate(void)
|
|||
sizeof(struct touchscreen_parameter));
|
||||
|
||||
touchscreen_set_mode(old_mode);
|
||||
global_settings.statusbar = statusbar;
|
||||
viewportmanager_set_statusbar(old_statusbar);
|
||||
|
||||
settings_save();
|
||||
return ret;
|
||||
|
|
Loading…
Reference in a new issue