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:
parent
b70d575343
commit
cb6bafd1f2
4 changed files with 8 additions and 16 deletions
|
@ -59,11 +59,6 @@ bool statusbar(bool state)
|
||||||
|
|
||||||
return(laststate);
|
return(laststate);
|
||||||
}
|
}
|
||||||
|
|
||||||
void statusbar_toggle(void)
|
|
||||||
{
|
|
||||||
statusbar_enabled = !statusbar_enabled;
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void status_draw(void)
|
void status_draw(void)
|
||||||
|
|
|
@ -35,7 +35,6 @@ void status_set_playmode(enum playmode mode);
|
||||||
#ifdef HAVE_LCD_BITMAP
|
#ifdef HAVE_LCD_BITMAP
|
||||||
extern bool statusbar_enabled;
|
extern bool statusbar_enabled;
|
||||||
bool statusbar(bool state);
|
bool statusbar(bool state);
|
||||||
void statusbar_toggle(void);
|
|
||||||
#endif
|
#endif
|
||||||
void status_draw(void);
|
void status_draw(void);
|
||||||
|
|
||||||
|
|
|
@ -74,7 +74,7 @@ void browse_root(void)
|
||||||
|
|
||||||
#define MARGIN_Y 0 /* Y pixel margin */
|
#define MARGIN_Y 0 /* Y pixel margin */
|
||||||
#define MARGIN_X 10 /* X 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_X 0 /* X position the entry-list starts at */
|
||||||
#define LINE_HEIGTH 8 /* pixels for each text line */
|
#define LINE_HEIGTH 8 /* pixels for each text line */
|
||||||
|
|
||||||
|
@ -522,10 +522,9 @@ bool dirbrowse(char *root)
|
||||||
case BUTTON_F3:
|
case BUTTON_F3:
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_LCD_BITMAP
|
#ifdef HAVE_LCD_BITMAP
|
||||||
if(global_settings.statusbar) {
|
global_settings.statusbar = !global_settings.statusbar;
|
||||||
statusbar_toggle();
|
settings_save();
|
||||||
restore = true;
|
restore = true;
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_LCD_BITMAP
|
#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 */
|
#else /* HAVE_LCD_BITMAP */
|
||||||
#define LINE_Y 0 /* Y position the entry-list starts at */
|
#define LINE_Y 0 /* Y position the entry-list starts at */
|
||||||
#endif /* HAVE_LCD_BITMAP */
|
#endif /* HAVE_LCD_BITMAP */
|
||||||
|
@ -787,10 +787,9 @@ int wps_show(void)
|
||||||
#ifdef HAVE_RECORDER_KEYPAD
|
#ifdef HAVE_RECORDER_KEYPAD
|
||||||
case BUTTON_F3:
|
case BUTTON_F3:
|
||||||
#ifdef HAVE_LCD_BITMAP
|
#ifdef HAVE_LCD_BITMAP
|
||||||
if(global_settings.statusbar) {
|
global_settings.statusbar = !global_settings.statusbar;
|
||||||
statusbar_toggle();
|
settings_save();
|
||||||
draw_screen(id3);
|
draw_screen(id3);
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue