From a87ce29bf87041e6c022f8d3215e5de948bcddea Mon Sep 17 00:00:00 2001 From: Mats Lidell Date: Tue, 15 Oct 2002 12:53:33 +0000 Subject: 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 --- apps/status.c | 33 +++++++++++++++++++++++++++++++++ apps/status.h | 7 +++++++ 2 files changed, 40 insertions(+) diff --git a/apps/status.c b/apps/status.c index 0270d75a13..31d2cbe2cf 100644 --- a/apps/status.c +++ b/apps/status.c @@ -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) { diff --git a/apps/status.h b/apps/status.h index d908face85..74118f303b 100644 --- a/apps/status.h +++ b/apps/status.h @@ -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 -- cgit v1.2.3