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 | |
parent | 87b66a8895265ba51fab773603601474a95a1325 (diff) | |
download | rockbox-a87ce29bf87041e6c022f8d3215e5de948bcddea.tar.gz rockbox-a87ce29bf87041e6c022f8d3215e5de948bcddea.zip |
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
-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 0270d75a13..31d2cbe2cf 100644 --- a/apps/status.c +++ b/apps/status.c | |||
@@ -53,6 +53,34 @@ void status_set_playmode(enum playmode mode) | |||
53 | status_draw(); | 53 | status_draw(); |
54 | } | 54 | } |
55 | 55 | ||
56 | #if defined(HAVE_LCD_CHARCELLS) | ||
57 | static bool record = false; | ||
58 | static bool audio = false; | ||
59 | static bool param = false; | ||
60 | static bool usb = false; | ||
61 | |||
62 | void status_set_record(bool b) | ||
63 | { | ||
64 | record = b; | ||
65 | } | ||
66 | |||
67 | void status_set_audio(bool b) | ||
68 | { | ||
69 | audio = b; | ||
70 | } | ||
71 | |||
72 | void status_set_param(bool b) | ||
73 | { | ||
74 | param = b; | ||
75 | } | ||
76 | |||
77 | void status_set_usb(bool b) | ||
78 | { | ||
79 | usb = b; | ||
80 | } | ||
81 | |||
82 | #endif /* HAVE_LCD_CHARCELLS */ | ||
83 | |||
56 | void status_draw(void) | 84 | void status_draw(void) |
57 | { | 85 | { |
58 | int battlevel = battery_level(); | 86 | int battlevel = battery_level(); |
@@ -160,6 +188,11 @@ void status_draw(void) | |||
160 | lcd_icon(ICON_REPEAT, global_settings.repeat_mode != REPEAT_OFF); | 188 | lcd_icon(ICON_REPEAT, global_settings.repeat_mode != REPEAT_OFF); |
161 | lcd_icon(ICON_1, global_settings.repeat_mode == REPEAT_ONE); | 189 | lcd_icon(ICON_1, global_settings.repeat_mode == REPEAT_ONE); |
162 | 190 | ||
191 | lcd_icon(ICON_RECORD, record); | ||
192 | lcd_icon(ICON_AUDIO, audio); | ||
193 | lcd_icon(ICON_PARAM, param); | ||
194 | lcd_icon(ICON_USB, usb); | ||
195 | |||
163 | #endif | 196 | #endif |
164 | #ifdef HAVE_LCD_BITMAP | 197 | #ifdef HAVE_LCD_BITMAP |
165 | if (global_settings.statusbar) { | 198 | 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); | |||
38 | #endif | 38 | #endif |
39 | void status_draw(void); | 39 | void status_draw(void); |
40 | 40 | ||
41 | #if defined(HAVE_LCD_CHARCELLS) | ||
42 | void status_set_record(bool b); | ||
43 | void status_set_audio(bool b); | ||
44 | void status_set_param(bool b); | ||
45 | void status_set_usb(bool b); | ||
46 | #endif | ||
47 | |||
41 | #endif | 48 | #endif |