From 7e23c70f65a6ab55bd715984555e09080558b0c8 Mon Sep 17 00:00:00 2001 From: Björn Stenberg Date: Tue, 8 Oct 2002 10:24:29 +0000 Subject: Added repeat-one icon for recorders. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2523 a1c6a512-1295-4272-9138-f99709370657 --- apps/recorder/icons.c | 13 +++++++++++++ apps/recorder/icons.h | 1 + apps/status.c | 17 +++++++++++++---- 3 files changed, 27 insertions(+), 4 deletions(-) (limited to 'apps') 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] = {0x1c,0x3e,0x7f,0x00,0x7f,0x3e,0x1c}, /* Record pause */ {0x08,0x08,0x08,0x08,0x3e,0x1c,0x08}, /* Normal playmode */ {0x38,0x44,0x44,0x4e,0x5f,0x44,0x38}, /* Repeat playmode */ + {0x10,0x78,0x04,0x4e,0x5f,0x44,0x38}, /* Repeat-one playmode */ {0x3e,0x41,0x51,0x41,0x45,0x41,0x3e}, /* Shuffle playmode (dice) */ {0x04,0x0c,0x1c,0x3c,0x1c,0x0c,0x04}, /* Down-arrow */ {0x20,0x30,0x38,0x3c,0x38,0x30,0x20}, /* Up-arrow */ }; +/* + +....*.. +...**.. +..****. +.*.**.* +**..*.* +.*....* +.*.***. + +*/ + unsigned char rockbox112x37[]={ 0x00, 0x00, 0x02, 0xff, 0x02, 0xfa, 0xfa, 0xfa, 0xfa, 0xfa, 0xfa, 0xfa, 0xfa, 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 { Icon_RecPause, Icon_Normal, Icon_Repeat, + Icon_RepeatOne, Icon_Shuffle, Icon_DownArrow, 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) #endif statusbar_icon_volume(volume); statusbar_icon_play_state(current_mode + Icon_Play); - if (global_settings.repeat_mode != REPEAT_OFF) - statusbar_icon_play_mode(Icon_Repeat); - else - statusbar_icon_play_mode(Icon_Normal); + switch (global_settings.repeat_mode) { + case REPEAT_OFF: + statusbar_icon_play_mode(Icon_Normal); + break; + + case REPEAT_ONE: + statusbar_icon_play_mode(Icon_RepeatOne); + break; + + case REPEAT_ALL: + statusbar_icon_play_mode(Icon_Repeat); + break; + } if(global_settings.playlist_shuffle) statusbar_icon_shuffle(); if (keys_locked) -- cgit v1.2.3