diff options
| author | Mats Lidell <matsl@rockbox.org> | 2002-10-15 12:53:33 +0000 |
|---|---|---|
| committer | Mats Lidell <matsl@rockbox.org> | 2002-10-15 12:53:33 +0000 |
| commit | a87ce29bf87041e6c022f8d3215e5de948bcddea (patch) | |
| tree | aa42ca0c5f1fd0ad63da0426cd64dbad926ca5ac /apps | |
| parent | 87b66a8895265ba51fab773603601474a95a1325 (diff) | |
| download | rockbox-a87ce29bf87041e6c022f8d3215e5de948bcddea.zip rockbox-a87ce29bf87041e6c022f8d3215e5de948bcddea.tar.gz rockbox-a87ce29bf87041e6c022f8d3215e5de948bcddea.tar.bz2 rockbox-a87ce29bf87041e6c022f8d3215e5de948bcddea.tar.xz | |
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
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/status.c | 33 | ||||
| -rw-r--r-- | apps/status.h | 7 |
2 files changed, 40 insertions, 0 deletions
diff --git a/apps/status.c b/apps/status.c index 0270d75..31d2cbe 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 d908fac..74118f3 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 |