1
0
Fork 0
forked from len0rd/rockbox

Added crude battery indicator line at bottom of WPS

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1366 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2002-07-16 10:58:14 +00:00
parent 1812eae051
commit 77eb0e1328

View file

@ -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: