From 50ba8da88c73c32d00da77b29a6fb75915e5f964 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Mon, 22 Jul 2002 23:16:36 +0000 Subject: Ooops. I accidentally reverted some earlier patches. Now they are back. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1411 a1c6a512-1295-4272-9138-f99709370657 --- apps/wps.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'apps') diff --git a/apps/wps.c b/apps/wps.c index 5e6cfb0449..8d81fc5c2f 100644 --- a/apps/wps.c +++ b/apps/wps.c @@ -33,6 +33,7 @@ #include "usb.h" #include "power.h" #include "status.h" +#include "main_menu.h" #define LINE_Y 1 /* initial line */ @@ -141,6 +142,7 @@ int wps_show(void) ( (id3->album?id3->album[0]:0) != lastalbum ) || ( (id3->title?id3->title[0]:0) != lasttitle ) ) { + lcd_stop_scroll(); draw_screen(id3); lastlength = id3->length; lastsize = id3->filesize; @@ -184,7 +186,7 @@ int wps_show(void) #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); + lcd_drawline(0,LCD_HEIGHT-1,battery_level() * (LCD_WIDTH-1) / 100, LCD_HEIGHT-1); #endif for ( i=0;i<5;i++ ) { @@ -235,6 +237,16 @@ int wps_show(void) mpeg_next(); break; +#ifdef HAVE_RECORDER_KEYPAD + case BUTTON_F1: +#else + case BUTTON_MENU: +#endif + lcd_stop_scroll(); + main_menu(); + draw_screen(id3); + break; + #ifdef HAVE_RECORDER_KEYPAD case BUTTON_OFF: #else -- cgit v1.2.3