summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMats Lidell <matsl@rockbox.org>2002-10-05 23:59:54 +0000
committerMats Lidell <matsl@rockbox.org>2002-10-05 23:59:54 +0000
commit645250065b671230758f8c6c7b7ed24811038e5f (patch)
tree06c659d117f9d9f7ab3654fd8fde6592a909dece
parent90d7b7879379e911b1d303a3c7479deab6cb4e21 (diff)
downloadrockbox-645250065b671230758f8c6c7b7ed24811038e5f.tar.gz
rockbox-645250065b671230758f8c6c7b7ed24811038e5f.zip
Added icons for repeat and repeat 1.
Moved icons on the first status row around a little. (Subject to change when the real fonts are there but looks better now.) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2512 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--uisimulator/common/sim_icons.c32
1 files changed, 20 insertions, 12 deletions
diff --git a/uisimulator/common/sim_icons.c b/uisimulator/common/sim_icons.c
index 8676d873bf..8533c19fd7 100644
--- a/uisimulator/common/sim_icons.c
+++ b/uisimulator/common/sim_icons.c
@@ -26,7 +26,7 @@
26#include <string.h> 26#include <string.h>
27#include <debug.h> 27#include <debug.h>
28 28
29#define XPOS_volume 105 29#define XPOS_volume 85
30#define XPOS_volume1 XPOS_volume + 15 30#define XPOS_volume1 XPOS_volume + 15
31#define XPOS_volume2 XPOS_volume1 + 2 31#define XPOS_volume2 XPOS_volume1 + 2
32#define XPOS_volume3 XPOS_volume2 + 2 32#define XPOS_volume3 XPOS_volume2 + 2
@@ -118,6 +118,19 @@ const unsigned char param[] = {
118 118
119}; 119};
120 120
121#define BMPHEIGHT_repeat 7
122#define BMPWIDTH_repeat 12
123const unsigned char repeat[] = {
1240x1c, 0x22, 0x41, 0x41, 0x41, 0x41, 0x71, 0x71, 0x61, 0x61, 0x41, 0x40,
125
126};
127
128#define BMPHEIGHT_repeat1 7
129#define BMPWIDTH_repeat1 3
130const unsigned char repeat1[] = {
1310x42, 0x7f, 0x40,
132
133};
121 134
122struct icon_info 135struct icon_info
123{ 136{
@@ -135,12 +148,13 @@ static struct icon_info icons [] =
135 { battery_bit, 5, 2, BMPWIDTH_battery_bit, BMPHEIGHT_battery_bit }, /* ICON_BATTERY_2 */ 148 { battery_bit, 5, 2, BMPWIDTH_battery_bit, BMPHEIGHT_battery_bit }, /* ICON_BATTERY_2 */
136 { battery_bit, 8, 2, BMPWIDTH_battery_bit, BMPHEIGHT_battery_bit }, /* ICON_BATTERY_3 */ 149 { battery_bit, 8, 2, BMPWIDTH_battery_bit, BMPHEIGHT_battery_bit }, /* ICON_BATTERY_3 */
137 { usb, 0, 40, BMPWIDTH_usb, BMPHEIGHT_usb }, /* ICON_USB */ 150 { usb, 0, 40, BMPWIDTH_usb, BMPHEIGHT_usb }, /* ICON_USB */
138 { play, 40, 0, BMPWIDTH_play, BMPHEIGHT_play }, /* ICON_PLAY */ 151 { play, 20, 0, BMPWIDTH_play, BMPHEIGHT_play }, /* ICON_PLAY */
139 { record, 48, 0, BMPWIDTH_record, BMPHEIGHT_record }, /* ICON_RECORD */ 152 { record, 35, 0, BMPWIDTH_record, BMPHEIGHT_record }, /* ICON_RECORD */
140 { pause, 60, 0, BMPWIDTH_pause, BMPHEIGHT_pause }, /* ICON_PAUSE */ 153 { pause, 50, 0, BMPWIDTH_pause, BMPHEIGHT_pause }, /* ICON_PAUSE */
141 { audio, 40, 40, BMPWIDTH_audio, BMPHEIGHT_audio }, /* ICON_AUDIO */ 154 { audio, 40, 40, BMPWIDTH_audio, BMPHEIGHT_audio }, /* ICON_AUDIO */
142 { 0, 0, 0, 0, 0 }, /* ICON_REPEAT */ 155 { repeat, XPOS_volume-13-BMPWIDTH_repeat,
143 { 0, 0, 0, 0, 0 }, /* ICON_1 */ 156 0, BMPWIDTH_repeat, BMPHEIGHT_repeat }, /* ICON_REPEAT */
157 { repeat1, XPOS_volume-10, 0, BMPWIDTH_repeat1, BMPHEIGHT_repeat1 }, /* ICON_1 */
144 { volume, XPOS_volume, 0, BMPWIDTH_volume, BMPHEIGHT_volume }, /* ICON_VOLUME */ 158 { volume, XPOS_volume, 0, BMPWIDTH_volume, BMPHEIGHT_volume }, /* ICON_VOLUME */
145 { volume1, XPOS_volume1, 0, BMPWIDTH_volume1, BMPHEIGHT_volume1 }, /* ICON_VOLUME1 */ 159 { volume1, XPOS_volume1, 0, BMPWIDTH_volume1, BMPHEIGHT_volume1 }, /* ICON_VOLUME1 */
146 { volume2, XPOS_volume2, 0, BMPWIDTH_volume2, BMPHEIGHT_volume2 }, /* ICON_VOLUME2 */ 160 { volume2, XPOS_volume2, 0, BMPWIDTH_volume2, BMPHEIGHT_volume2 }, /* ICON_VOLUME2 */
@@ -182,12 +196,6 @@ lcd_icon(int icon, bool enable)
182 case ICON_BATTERY_3: 196 case ICON_BATTERY_3:
183 sim_battery_icon(icon, enable); 197 sim_battery_icon(icon, enable);
184 break; 198 break;
185
186 /* Ignore. Don't know these icons yet */
187 case ICON_REPEAT:
188 case ICON_1:
189 break;
190
191 default: 199 default:
192 display_icon(icon, enable); 200 display_icon(icon, enable);
193 break; 201 break;