Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Patch for player: more audio, params and volume icons
From: Mats Lidell (matsl_at_contactor.se)
Date: 2002-08-09


Hi,

This patch adds the following:
* Param icon shown in main_menu
* Audio icon shown in wps.
* Param shown when changing volume in wps.
* Volume icon change when volume is changed in sound_menu.

Disclaimer: Patch slightly edited due to that I have other things
changed as well. Should work though since patch is such a smart tool.

----------------------------------------------------------------------
Index: main_menu.c
===================================================================
RCS file: /cvsroot/rockbox/apps/main_menu.c,v
retrieving revision 1.46
diff -u -u -r1.46 main_menu.c
--- main_menu.c 7 Aug 2002 11:23:36 -0000 1.46
+++ main_menu.c 9 Aug 2002 07:36:00 -0000
@@ -192,6 +192,12 @@
     };
 
     m=menu_init( items, sizeof items / sizeof(struct menu_items) );
+#ifdef HAVE_LCD_CHARCELLS
+ lcd_icon(ICON_PARAM, true);
+#endif
     menu_run(m);
+#ifdef HAVE_LCD_CHARCELLS
+ lcd_icon(ICON_PARAM, false);
+#endif
     menu_exit(m);
 }
Index: sound_menu.c
===================================================================
RCS file: /cvsroot/rockbox/apps/sound_menu.c,v
retrieving revision 1.19
diff -u -u -r1.19 sound_menu.c
--- sound_menu.c 8 Aug 2002 20:44:24 -0000 1.19
+++ sound_menu.c 9 Aug 2002 07:36:00 -0000
@@ -24,6 +24,7 @@
 #include "button.h"
 #include "mpeg.h"
 #include "settings.h"
+#include "status.h"
 
 static char *fmt[] =
 {
@@ -67,6 +68,7 @@
         }
         lcd_puts(0,1,str);
         lcd_update();
+ status_draw();
 
         switch( button_get(true) ) {
 #ifdef HAVE_RECORDER_KEYPAD
Index: wps.c
===================================================================
RCS file: /cvsroot/rockbox/apps/wps.c,v
retrieving revision 1.51
diff -u -u -r1.51 wps.c
--- wps.c 8 Aug 2002 15:38:15 -0000 1.51
+++ wps.c 9 Aug 2002 07:36:01 -0000
@@ -197,6 +202,11 @@
 
     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())
     {
         id3 = mpeg_current_track();
@@ -213,7 +223,7 @@
             id3 = mpeg_current_track();
             draw_screen(id3);
         }
-
+
         switch(button)
         {
             case BUTTON_ON:
@@ -226,6 +236,7 @@
 
 #ifdef HAVE_LCD_CHARCELLS
                 lcd_icon(ICON_RECORD, false);
+ lcd_icon(ICON_AUDIO, false);
 #endif
                 button_set_release(old_release_mask);
                 return 0;
@@ -329,6 +340,7 @@
                     
             case BUTTON_MENU:
                 lcd_icon(ICON_PARAM, true);
+ lcd_icon(ICON_AUDIO, false);
                 menu_button_is_down = true;
                 break;
 
@@ -403,6 +415,9 @@
                 {
                     dont_go_to_menu = false;
                 }
+#ifdef HAVE_LCD_CHARCELLS
+ lcd_icon(ICON_AUDIO, true);
+#endif
                 menu_button_is_down = false;
                 break;
 
@@ -429,6 +444,10 @@
                     break;
                 }
 
+#ifdef HAVE_LCD_CHARCELLS
+ lcd_icon(ICON_RECORD, false);
+ lcd_icon(ICON_AUDIO, false);
+#endif
                 mpeg_stop();
                 status_set_playmode(STATUS_STOP);
                 button_set_release(old_release_mask);
----------------------------------------------------------------------

Yours

-- 
%% Mats



Page was last modified "Jan 10 2012" The Rockbox Crew
aaa