diff options
Diffstat (limited to 'apps/wps.c')
-rw-r--r-- | apps/wps.c | 14 |
1 files changed, 13 insertions, 1 deletions
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 @@ | |||
33 | #include "usb.h" | 33 | #include "usb.h" |
34 | #include "power.h" | 34 | #include "power.h" |
35 | #include "status.h" | 35 | #include "status.h" |
36 | #include "main_menu.h" | ||
36 | 37 | ||
37 | #define LINE_Y 1 /* initial line */ | 38 | #define LINE_Y 1 /* initial line */ |
38 | 39 | ||
@@ -141,6 +142,7 @@ int wps_show(void) | |||
141 | ( (id3->album?id3->album[0]:0) != lastalbum ) || | 142 | ( (id3->album?id3->album[0]:0) != lastalbum ) || |
142 | ( (id3->title?id3->title[0]:0) != lasttitle ) ) | 143 | ( (id3->title?id3->title[0]:0) != lasttitle ) ) |
143 | { | 144 | { |
145 | lcd_stop_scroll(); | ||
144 | draw_screen(id3); | 146 | draw_screen(id3); |
145 | lastlength = id3->length; | 147 | lastlength = id3->length; |
146 | lastsize = id3->filesize; | 148 | lastsize = id3->filesize; |
@@ -184,7 +186,7 @@ int wps_show(void) | |||
184 | #ifdef HAVE_LCD_BITMAP | 186 | #ifdef HAVE_LCD_BITMAP |
185 | /* draw battery indicator line */ | 187 | /* draw battery indicator line */ |
186 | lcd_clearline(0,LCD_HEIGHT-1,LCD_WIDTH-1, LCD_HEIGHT-1); | 188 | lcd_clearline(0,LCD_HEIGHT-1,LCD_WIDTH-1, LCD_HEIGHT-1); |
187 | lcd_drawline(0,LCD_HEIGHT-1,battery_level() * LCD_WIDTH / 100, LCD_HEIGHT-1); | 189 | lcd_drawline(0,LCD_HEIGHT-1,battery_level() * (LCD_WIDTH-1) / 100, LCD_HEIGHT-1); |
188 | #endif | 190 | #endif |
189 | 191 | ||
190 | for ( i=0;i<5;i++ ) { | 192 | for ( i=0;i<5;i++ ) { |
@@ -235,6 +237,16 @@ int wps_show(void) | |||
235 | mpeg_next(); | 237 | mpeg_next(); |
236 | break; | 238 | break; |
237 | 239 | ||
240 | #ifdef HAVE_RECORDER_KEYPAD | ||
241 | case BUTTON_F1: | ||
242 | #else | ||
243 | case BUTTON_MENU: | ||
244 | #endif | ||
245 | lcd_stop_scroll(); | ||
246 | main_menu(); | ||
247 | draw_screen(id3); | ||
248 | break; | ||
249 | |||
238 | #ifdef HAVE_RECORDER_KEYPAD | 250 | #ifdef HAVE_RECORDER_KEYPAD |
239 | case BUTTON_OFF: | 251 | case BUTTON_OFF: |
240 | #else | 252 | #else |