summaryrefslogtreecommitdiff
path: root/apps/wps.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/wps.c')
-rw-r--r--apps/wps.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/apps/wps.c b/apps/wps.c
index 7a22e1cc35..c5a27d9e9d 100644
--- a/apps/wps.c
+++ b/apps/wps.c
@@ -223,8 +223,13 @@ bool browse_id3(void)
223 223
224 case 7: 224 case 7:
225 lcd_puts(0, 0, str(LANG_ID3_PLAYLIST)); 225 lcd_puts(0, 0, str(LANG_ID3_PLAYLIST));
226 snprintf(scroll_text,sizeof(scroll_text), "%d/%d", 226 {
227 id3->index + 1, playlist_amount()); 227 int index = id3->index - playlist_first_index();
228 if (index < 0)
229 index += playlist_amount();
230 snprintf(scroll_text,sizeof(scroll_text), "%d/%d",
231 index + 1, playlist_amount());
232 }
228 lcd_puts_scroll(0, 1, scroll_text); 233 lcd_puts_scroll(0, 1, scroll_text);
229 break; 234 break;
230 235