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
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 @@
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 @@
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 @@
#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