1
0
Fork 0
forked from len0rd/rockbox

Fix type of variable statusbar in screens.c as global_settings.statusbar is integer.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22439 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Teruaki Kawashima 2009-08-20 15:04:47 +00:00
parent e510de1b35
commit 0a17284448

View file

@ -181,8 +181,10 @@ void usb_screen(void)
/* nothing here! */ /* nothing here! */
#else #else
int i; int i;
bool statusbar = global_settings.statusbar; /* force the statusbar */ int statusbar = global_settings.statusbar; /* force the statusbar */
global_settings.statusbar = true; if(!global_settings.statusbar)
global_settings.statusbar = STATUSBAR_TOP;
FOR_NB_SCREENS(i) FOR_NB_SCREENS(i)
{ {
screens[i].backdrop_show(BACKDROP_MAIN); screens[i].backdrop_show(BACKDROP_MAIN);
@ -1052,9 +1054,9 @@ 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;
bool statusbar = global_settings.statusbar; /* hide the statusbar */ int statusbar = global_settings.statusbar; /* hide the statusbar */
global_settings.statusbar = STATUSBAR_OFF;
global_settings.statusbar = false;
touchscreen_disable_mapping(); /* set raw mode */ touchscreen_disable_mapping(); /* set raw mode */
touchscreen_set_mode(TOUCHSCREEN_POINT); touchscreen_set_mode(TOUCHSCREEN_POINT);
for(i=0; i<3; i++) for(i=0; i<3; i++)