Slightly increased precision in the wps progress bar
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4858 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
84cb8606d0
commit
209210e265
1 changed files with 4 additions and 5 deletions
|
@ -913,11 +913,10 @@ bool wps_refresh(struct mp3entry* id3,
|
||||||
#ifdef HAVE_LCD_BITMAP
|
#ifdef HAVE_LCD_BITMAP
|
||||||
/* progress */
|
/* progress */
|
||||||
if (flags & refresh_mode & WPS_REFRESH_PLAYER_PROGRESS) {
|
if (flags & refresh_mode & WPS_REFRESH_PLAYER_PROGRESS) {
|
||||||
int percent=
|
scrollbar(0, i*h + offset + 1, LCD_WIDTH, 6,
|
||||||
id3->length?
|
id3->length?id3->length:1, 0,
|
||||||
(id3->elapsed + ff_rewind_count) * 100 / id3->length:0;
|
id3->length?id3->elapsed + ff_rewind_count:0,
|
||||||
scrollbar(0, i*h + offset + 1, LCD_WIDTH, 6, 100, 0,
|
HORIZONTAL);
|
||||||
percent, HORIZONTAL);
|
|
||||||
update_line = true;
|
update_line = true;
|
||||||
}
|
}
|
||||||
if (flags & refresh_mode & WPS_REFRESH_PEAK_METER) {
|
if (flags & refresh_mode & WPS_REFRESH_PEAK_METER) {
|
||||||
|
|
Loading…
Reference in a new issue