diff options
| author | Björn Stenberg <bjorn@haxx.se> | 2003-06-04 14:18:47 +0000 |
|---|---|---|
| committer | Björn Stenberg <bjorn@haxx.se> | 2003-06-04 14:18:47 +0000 |
| commit | 7bc69aa084fe3d0577303fbf6cf1569a19cde390 (patch) | |
| tree | 754762563d72bfce2c1aea7a24e60a49e03e3c3b /apps/wps.c | |
| parent | 56f771e76a8b7707553c472d08b745e45f79c64f (diff) | |
| download | rockbox-7bc69aa084fe3d0577303fbf6cf1569a19cde390.zip rockbox-7bc69aa084fe3d0577303fbf6cf1569a19cde390.tar.gz rockbox-7bc69aa084fe3d0577303fbf6cf1569a19cde390.tar.bz2 rockbox-7bc69aa084fe3d0577303fbf6cf1569a19cde390.tar.xz | |
Fixed %pp for shuffled dirs (patch #700465)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3726 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/wps.c')
| -rw-r--r-- | apps/wps.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -223,8 +223,13 @@ bool browse_id3(void) case 7: lcd_puts(0, 0, str(LANG_ID3_PLAYLIST)); - snprintf(scroll_text,sizeof(scroll_text), "%d/%d", - id3->index + 1, playlist_amount()); + { + int index = id3->index - playlist_first_index(); + if (index < 0) + index += playlist_amount(); + snprintf(scroll_text,sizeof(scroll_text), "%d/%d", + index + 1, playlist_amount()); + } lcd_puts_scroll(0, 1, scroll_text); break; |