forked from len0rd/rockbox
Set audio icon in wps.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1706 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
cbb24497e2
commit
ccd10acb20
1 changed files with 15 additions and 1 deletions
16
apps/wps.c
16
apps/wps.c
|
@ -358,6 +358,11 @@ int wps_show(void)
|
||||||
|
|
||||||
old_release_mask = button_set_release(RELEASE_MASK);
|
old_release_mask = button_set_release(RELEASE_MASK);
|
||||||
|
|
||||||
|
#ifdef HAVE_LCD_CHARCELLS
|
||||||
|
lcd_icon(ICON_AUDIO, true);
|
||||||
|
lcd_icon(ICON_PARAM, false);
|
||||||
|
#endif
|
||||||
|
|
||||||
if(mpeg_is_playing())
|
if(mpeg_is_playing())
|
||||||
{
|
{
|
||||||
id3 = mpeg_current_track();
|
id3 = mpeg_current_track();
|
||||||
|
@ -374,7 +379,7 @@ int wps_show(void)
|
||||||
id3 = mpeg_current_track();
|
id3 = mpeg_current_track();
|
||||||
draw_screen(id3);
|
draw_screen(id3);
|
||||||
}
|
}
|
||||||
|
|
||||||
switch(button)
|
switch(button)
|
||||||
{
|
{
|
||||||
case BUTTON_ON:
|
case BUTTON_ON:
|
||||||
|
@ -387,6 +392,7 @@ int wps_show(void)
|
||||||
|
|
||||||
#ifdef HAVE_LCD_CHARCELLS
|
#ifdef HAVE_LCD_CHARCELLS
|
||||||
lcd_icon(ICON_RECORD, false);
|
lcd_icon(ICON_RECORD, false);
|
||||||
|
lcd_icon(ICON_AUDIO, false);
|
||||||
#endif
|
#endif
|
||||||
button_set_release(old_release_mask);
|
button_set_release(old_release_mask);
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -511,6 +517,7 @@ int wps_show(void)
|
||||||
|
|
||||||
case BUTTON_MENU:
|
case BUTTON_MENU:
|
||||||
lcd_icon(ICON_PARAM, true);
|
lcd_icon(ICON_PARAM, true);
|
||||||
|
lcd_icon(ICON_AUDIO, false);
|
||||||
menu_button_is_down = true;
|
menu_button_is_down = true;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -614,6 +621,9 @@ int wps_show(void)
|
||||||
{
|
{
|
||||||
dont_go_to_menu = false;
|
dont_go_to_menu = false;
|
||||||
}
|
}
|
||||||
|
#ifdef HAVE_LCD_CHARCELLS
|
||||||
|
lcd_icon(ICON_AUDIO, true);
|
||||||
|
#endif
|
||||||
menu_button_is_down = false;
|
menu_button_is_down = false;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -640,6 +650,10 @@ int wps_show(void)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_LCD_CHARCELLS
|
||||||
|
lcd_icon(ICON_RECORD, false);
|
||||||
|
lcd_icon(ICON_AUDIO, false);
|
||||||
|
#endif
|
||||||
mpeg_stop();
|
mpeg_stop();
|
||||||
status_set_playmode(STATUS_STOP);
|
status_set_playmode(STATUS_STOP);
|
||||||
button_set_release(old_release_mask);
|
button_set_release(old_release_mask);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue