summaryrefslogtreecommitdiff
path: root/apps/wps.c
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2002-07-16 10:58:14 +0000
committerBjörn Stenberg <bjorn@haxx.se>2002-07-16 10:58:14 +0000
commit77eb0e1328e05346b4441f702f437310196e839f (patch)
treecabce93fb29c4180e1b686d939da8f9a72e90c07 /apps/wps.c
parent1812eae051c2352226975e413f63b1cf519ba94f (diff)
downloadrockbox-77eb0e1328e05346b4441f702f437310196e839f.tar.gz
rockbox-77eb0e1328e05346b4441f702f437310196e839f.zip
Added crude battery indicator line at bottom of WPS
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1366 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/wps.c')
-rw-r--r--apps/wps.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/wps.c b/apps/wps.c
index 3e72d4ba49..e7ddcfe87f 100644
--- a/apps/wps.c
+++ b/apps/wps.c
@@ -125,6 +125,8 @@ int wps_show(void)
125 int lastartist=0, lastalbum=0, lasttitle=0; 125 int lastartist=0, lastalbum=0, lasttitle=0;
126 bool lastvbr = false; 126 bool lastvbr = false;
127 127
128 lcd_clear_display();
129
128 while ( 1 ) { 130 while ( 1 ) {
129 int i; 131 int i;
130 char buffer[32]; 132 char buffer[32];
@@ -174,6 +176,13 @@ int wps_show(void)
174 } 176 }
175#endif 177#endif
176 } 178 }
179
180#ifdef HAVE_LCD_BITMAP
181 /* draw battery indicator line */
182 lcd_clearline(0,LCD_HEIGHT-1,LCD_WIDTH-1, LCD_HEIGHT-1);
183 lcd_drawline(0,LCD_HEIGHT-1,battery_level() * LCD_WIDTH / 100, LCD_HEIGHT-1);
184#endif
185
177 for ( i=0;i<5;i++ ) { 186 for ( i=0;i<5;i++ ) {
178 switch ( button_get(false) ) { 187 switch ( button_get(false) ) {
179 case BUTTON_ON: 188 case BUTTON_ON: