From 77eb0e1328e05346b4441f702f437310196e839f Mon Sep 17 00:00:00 2001 From: Björn Stenberg Date: Tue, 16 Jul 2002 10:58:14 +0000 Subject: Added crude battery indicator line at bottom of WPS git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1366 a1c6a512-1295-4272-9138-f99709370657 --- apps/wps.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'apps/wps.c') 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) 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: -- cgit v1.2.3