summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/wps-display.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/wps-display.c b/apps/wps-display.c
index cbdf5f4409..92247bcb21 100644
--- a/apps/wps-display.c
+++ b/apps/wps-display.c
@@ -666,9 +666,11 @@ bool wps_refresh(struct mp3entry* id3, int ffwd_offset, unsigned char refresh_mo
666 /* progress */ 666 /* progress */
667 if (flags & refresh_mode & WPS_REFRESH_PLAYER_PROGRESS) { 667 if (flags & refresh_mode & WPS_REFRESH_PLAYER_PROGRESS) {
668 int offset = global_settings.statusbar ? STATUSBAR_HEIGHT : 0; 668 int offset = global_settings.statusbar ? STATUSBAR_HEIGHT : 0;
669 int percent=
670 id3->length?
671 (id3->elapsed + ff_rewind_count) * 100 / id3->length:0;
669 slidebar(0, i*h + offset + 1, LCD_WIDTH, 6, 672 slidebar(0, i*h + offset + 1, LCD_WIDTH, 6,
670 (id3->elapsed + ff_rewind_count) * 100 / id3->length, 673 percent, Grow_Right);
671 Grow_Right);
672 update_line = true; 674 update_line = true;
673 } 675 }
674 if (flags & refresh_mode & WPS_REFRESH_PEAK_METER) { 676 if (flags & refresh_mode & WPS_REFRESH_PEAK_METER) {
@@ -702,7 +704,6 @@ bool wps_refresh(struct mp3entry* id3, int ffwd_offset, unsigned char refresh_mo
702 if (refresh_mode & WPS_REFRESH_SCROLL) { 704 if (refresh_mode & WPS_REFRESH_SCROLL) {
703 lcd_puts_scroll(0, i, buf); 705 lcd_puts_scroll(0, i, buf);
704 } 706 }
705 flags=0;
706 } 707 }
707 708
708 /* dynamic / static line */ 709 /* dynamic / static line */