diff options
| author | Björn Stenberg <bjorn@haxx.se> | 2002-07-16 10:58:14 +0000 |
|---|---|---|
| committer | Björn Stenberg <bjorn@haxx.se> | 2002-07-16 10:58:14 +0000 |
| commit | 77eb0e1328e05346b4441f702f437310196e839f (patch) | |
| tree | cabce93fb29c4180e1b686d939da8f9a72e90c07 | |
| parent | 1812eae051c2352226975e413f63b1cf519ba94f (diff) | |
| download | rockbox-77eb0e1328e05346b4441f702f437310196e839f.zip rockbox-77eb0e1328e05346b4441f702f437310196e839f.tar.gz rockbox-77eb0e1328e05346b4441f702f437310196e839f.tar.bz2 rockbox-77eb0e1328e05346b4441f702f437310196e839f.tar.xz | |
Added crude battery indicator line at bottom of WPS
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1366 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | apps/wps.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -125,6 +125,8 @@ int wps_show(void) int lastartist=0, lastalbum=0, lasttitle=0; bool lastvbr = false; + lcd_clear_display(); + while ( 1 ) { int i; char buffer[32]; @@ -174,6 +176,13 @@ int wps_show(void) } #endif } + +#ifdef HAVE_LCD_BITMAP + /* draw battery indicator line */ + lcd_clearline(0,LCD_HEIGHT-1,LCD_WIDTH-1, LCD_HEIGHT-1); + lcd_drawline(0,LCD_HEIGHT-1,battery_level() * LCD_WIDTH / 100, LCD_HEIGHT-1); +#endif + for ( i=0;i<5;i++ ) { switch ( button_get(false) ) { case BUTTON_ON: |