Draw all icons for player from status_draw. Added set methods for

icons that isn't deduced from somewhere.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2660 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Mats Lidell 2002-10-15 12:53:33 +00:00
parent 87b66a8895
commit a87ce29bf8
2 changed files with 40 additions and 0 deletions

View file

@ -53,6 +53,34 @@ void status_set_playmode(enum playmode mode)
status_draw();
}
#if defined(HAVE_LCD_CHARCELLS)
static bool record = false;
static bool audio = false;
static bool param = false;
static bool usb = false;
void status_set_record(bool b)
{
record = b;
}
void status_set_audio(bool b)
{
audio = b;
}
void status_set_param(bool b)
{
param = b;
}
void status_set_usb(bool b)
{
usb = b;
}
#endif /* HAVE_LCD_CHARCELLS */
void status_draw(void)
{
int battlevel = battery_level();
@ -160,6 +188,11 @@ void status_draw(void)
lcd_icon(ICON_REPEAT, global_settings.repeat_mode != REPEAT_OFF);
lcd_icon(ICON_1, global_settings.repeat_mode == REPEAT_ONE);
lcd_icon(ICON_RECORD, record);
lcd_icon(ICON_AUDIO, audio);
lcd_icon(ICON_PARAM, param);
lcd_icon(ICON_USB, usb);
#endif
#ifdef HAVE_LCD_BITMAP
if (global_settings.statusbar) {

View file

@ -38,4 +38,11 @@ bool statusbar(bool state);
#endif
void status_draw(void);
#if defined(HAVE_LCD_CHARCELLS)
void status_set_record(bool b);
void status_set_audio(bool b);
void status_set_param(bool b);
void status_set_usb(bool b);
#endif
#endif