1
0
Fork 0
forked from len0rd/rockbox

F3 now toggles global_settings.statusbar

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1768 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Markus Braun 2002-08-15 14:12:32 +00:00
parent b70d575343
commit cb6bafd1f2
4 changed files with 8 additions and 16 deletions

View file

@ -59,11 +59,6 @@ bool statusbar(bool state)
return(laststate);
}
void statusbar_toggle(void)
{
statusbar_enabled = !statusbar_enabled;
}
#endif
void status_draw(void)

View file

@ -35,7 +35,6 @@ void status_set_playmode(enum playmode mode);
#ifdef HAVE_LCD_BITMAP
extern bool statusbar_enabled;
bool statusbar(bool state);
void statusbar_toggle(void);
#endif
void status_draw(void);

View file

@ -74,7 +74,7 @@ void browse_root(void)
#define MARGIN_Y 0 /* Y pixel margin */
#define MARGIN_X 10 /* X pixel margin */
#define LINE_Y (global_settings.statusbar&&statusbar_enabled?1:0) /* Y position the entry-list starts at */
#define LINE_Y (global_settings.statusbar ? 1 : 0) /* Y position the entry-list starts at */
#define LINE_X 0 /* X position the entry-list starts at */
#define LINE_HEIGTH 8 /* pixels for each text line */
@ -522,10 +522,9 @@ bool dirbrowse(char *root)
case BUTTON_F3:
#endif
#ifdef HAVE_LCD_BITMAP
if(global_settings.statusbar) {
statusbar_toggle();
restore = true;
}
global_settings.statusbar = !global_settings.statusbar;
settings_save();
restore = true;
#endif
break;

View file

@ -44,7 +44,7 @@
#endif
#ifdef HAVE_LCD_BITMAP
#define LINE_Y (global_settings.statusbar&&statusbar_enabled?1:0) /* Y position the entry-list starts at */
#define LINE_Y (global_settings.statusbar ? 1 : 0) /* Y position the entry-list starts at */
#else /* HAVE_LCD_BITMAP */
#define LINE_Y 0 /* Y position the entry-list starts at */
#endif /* HAVE_LCD_BITMAP */
@ -787,10 +787,9 @@ int wps_show(void)
#ifdef HAVE_RECORDER_KEYPAD
case BUTTON_F3:
#ifdef HAVE_LCD_BITMAP
if(global_settings.statusbar) {
statusbar_toggle();
draw_screen(id3);
}
global_settings.statusbar = !global_settings.statusbar;
settings_save();
draw_screen(id3);
#endif
break;
#endif