diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-07-09 04:57:38 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-07-09 04:57:38 +0000 |
commit | 209210e265cae4fe2fc35a92e74247df5d1d6a2d (patch) | |
tree | 23db1e62edd4d5a3d577b67c9b9aa7179ca2ac40 /apps | |
parent | 84cb8606d0758bbc167e4b87289f66dc060fcf6a (diff) |
Slightly increased precision in the wps progress bar
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4858 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/wps-display.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/apps/wps-display.c b/apps/wps-display.c index 68b018b43e..457282c350 100644 --- a/apps/wps-display.c +++ b/apps/wps-display.c @@ -913,11 +913,10 @@ bool wps_refresh(struct mp3entry* id3, #ifdef HAVE_LCD_BITMAP /* progress */ if (flags & refresh_mode & WPS_REFRESH_PLAYER_PROGRESS) { - int percent= - id3->length? - (id3->elapsed + ff_rewind_count) * 100 / id3->length:0; - scrollbar(0, i*h + offset + 1, LCD_WIDTH, 6, 100, 0, - percent, HORIZONTAL); + scrollbar(0, i*h + offset + 1, LCD_WIDTH, 6, + id3->length?id3->length:1, 0, + id3->length?id3->elapsed + ff_rewind_count:0, + HORIZONTAL); update_line = true; } if (flags & refresh_mode & WPS_REFRESH_PEAK_METER) { |