diff options
author | Björn Stenberg <bjorn@haxx.se> | 2002-10-08 10:24:29 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2002-10-08 10:24:29 +0000 |
commit | 7e23c70f65a6ab55bd715984555e09080558b0c8 (patch) | |
tree | 951572ad06abd3caa3958942d440f1d1012dd55b | |
parent | b7638221cd4f247fe00d4ee0f2c7c7ef625b24e2 (diff) | |
download | rockbox-7e23c70f65a6ab55bd715984555e09080558b0c8.tar.gz rockbox-7e23c70f65a6ab55bd715984555e09080558b0c8.zip |
Added repeat-one icon for recorders.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2523 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/recorder/icons.c | 13 | ||||
-rw-r--r-- | apps/recorder/icons.h | 1 | ||||
-rw-r--r-- | apps/status.c | 17 |
3 files changed, 27 insertions, 4 deletions
diff --git a/apps/recorder/icons.c b/apps/recorder/icons.c index 238d522444..375f3556e0 100644 --- a/apps/recorder/icons.c +++ b/apps/recorder/icons.c | |||
@@ -77,11 +77,24 @@ unsigned char bitmap_icons_7x8[][7] = | |||
77 | {0x1c,0x3e,0x7f,0x00,0x7f,0x3e,0x1c}, /* Record pause */ | 77 | {0x1c,0x3e,0x7f,0x00,0x7f,0x3e,0x1c}, /* Record pause */ |
78 | {0x08,0x08,0x08,0x08,0x3e,0x1c,0x08}, /* Normal playmode */ | 78 | {0x08,0x08,0x08,0x08,0x3e,0x1c,0x08}, /* Normal playmode */ |
79 | {0x38,0x44,0x44,0x4e,0x5f,0x44,0x38}, /* Repeat playmode */ | 79 | {0x38,0x44,0x44,0x4e,0x5f,0x44,0x38}, /* Repeat playmode */ |
80 | {0x10,0x78,0x04,0x4e,0x5f,0x44,0x38}, /* Repeat-one playmode */ | ||
80 | {0x3e,0x41,0x51,0x41,0x45,0x41,0x3e}, /* Shuffle playmode (dice) */ | 81 | {0x3e,0x41,0x51,0x41,0x45,0x41,0x3e}, /* Shuffle playmode (dice) */ |
81 | {0x04,0x0c,0x1c,0x3c,0x1c,0x0c,0x04}, /* Down-arrow */ | 82 | {0x04,0x0c,0x1c,0x3c,0x1c,0x0c,0x04}, /* Down-arrow */ |
82 | {0x20,0x30,0x38,0x3c,0x38,0x30,0x20}, /* Up-arrow */ | 83 | {0x20,0x30,0x38,0x3c,0x38,0x30,0x20}, /* Up-arrow */ |
83 | }; | 84 | }; |
84 | 85 | ||
86 | /* | ||
87 | |||
88 | ....*.. | ||
89 | ...**.. | ||
90 | ..****. | ||
91 | .*.**.* | ||
92 | **..*.* | ||
93 | .*....* | ||
94 | .*.***. | ||
95 | |||
96 | */ | ||
97 | |||
85 | unsigned char rockbox112x37[]={ | 98 | unsigned char rockbox112x37[]={ |
86 | 0x00, 0x00, 0x02, 0xff, 0x02, 0xfa, 0xfa, 0xfa, 0xfa, 0xfa, 0xfa, 0xfa, 0xfa, | 99 | 0x00, 0x00, 0x02, 0xff, 0x02, 0xfa, 0xfa, 0xfa, 0xfa, 0xfa, 0xfa, 0xfa, 0xfa, |
87 | 0xf8, 0xf8, 0xf0, 0xe0, 0x80, 0x00, 0x00, 0x80, 0xe0, 0xf0, 0xf8, 0xf8, 0xfc, | 100 | 0xf8, 0xf8, 0xf0, 0xe0, 0x80, 0x00, 0x00, 0x80, 0xe0, 0xf0, 0xf8, 0xf8, 0xfc, |
diff --git a/apps/recorder/icons.h b/apps/recorder/icons.h index 68688e4de7..35b885a6a3 100644 --- a/apps/recorder/icons.h +++ b/apps/recorder/icons.h | |||
@@ -50,6 +50,7 @@ enum icons_7x8 { | |||
50 | Icon_RecPause, | 50 | Icon_RecPause, |
51 | Icon_Normal, | 51 | Icon_Normal, |
52 | Icon_Repeat, | 52 | Icon_Repeat, |
53 | Icon_RepeatOne, | ||
53 | Icon_Shuffle, | 54 | Icon_Shuffle, |
54 | Icon_DownArrow, | 55 | Icon_DownArrow, |
55 | Icon_UpArrow, | 56 | Icon_UpArrow, |
diff --git a/apps/status.c b/apps/status.c index 9430194c00..9ffdc62b30 100644 --- a/apps/status.c +++ b/apps/status.c | |||
@@ -195,10 +195,19 @@ void status_draw(void) | |||
195 | #endif | 195 | #endif |
196 | statusbar_icon_volume(volume); | 196 | statusbar_icon_volume(volume); |
197 | statusbar_icon_play_state(current_mode + Icon_Play); | 197 | statusbar_icon_play_state(current_mode + Icon_Play); |
198 | if (global_settings.repeat_mode != REPEAT_OFF) | 198 | switch (global_settings.repeat_mode) { |
199 | statusbar_icon_play_mode(Icon_Repeat); | 199 | case REPEAT_OFF: |
200 | else | 200 | statusbar_icon_play_mode(Icon_Normal); |
201 | statusbar_icon_play_mode(Icon_Normal); | 201 | break; |
202 | |||
203 | case REPEAT_ONE: | ||
204 | statusbar_icon_play_mode(Icon_RepeatOne); | ||
205 | break; | ||
206 | |||
207 | case REPEAT_ALL: | ||
208 | statusbar_icon_play_mode(Icon_Repeat); | ||
209 | break; | ||
210 | } | ||
202 | if(global_settings.playlist_shuffle) | 211 | if(global_settings.playlist_shuffle) |
203 | statusbar_icon_shuffle(); | 212 | statusbar_icon_shuffle(); |
204 | if (keys_locked) | 213 | if (keys_locked) |