diff options
author | Justin Heiner <jheiner@rockbox.org> | 2002-09-04 01:51:09 +0000 |
---|---|---|
committer | Justin Heiner <jheiner@rockbox.org> | 2002-09-04 01:51:09 +0000 |
commit | ba349223bf8b80d6f52e30bf3dfcdbf030fd0933 (patch) | |
tree | 974a145a002a556ce721ad45e54c2a9ec9709914 /apps/wps-display.c | |
parent | 0ad2010865165120a521272eef68d00b6a7b2edc (diff) | |
download | rockbox-ba349223bf8b80d6f52e30bf3dfcdbf030fd0933.tar.gz rockbox-ba349223bf8b80d6f52e30bf3dfcdbf030fd0933.zip |
wps-display.c
* Made 'Remaining Time' count correctly when doing FF/REW.
* Fixed bug in player_progressbar that caused Illegal Instruction
if the FF/Play went past the end of the song.
wps.c
* Removed 'if(lastbutton!=BUTTON_LEFT)' from track changes.
It was causing tracks to not change unless button was pressed
numerous times quickly :-)
* For player, changed BUTTON_STOP to BUTTON_STOP | BUTTON_REL.
Since stop is also the key to turn the device off, we don't want
it to go to the dir browser unless the stop button is released.
settings_menu.c
* Changed the minimum disk spindown time to 3 seconds, due to
reported problems if set below that.
makefile.vc6
* Fixed the VC makefile to work with both Recorder & Player again.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2159 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/wps-display.c')
-rw-r--r-- | apps/wps-display.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/apps/wps-display.c b/apps/wps-display.c index f901f8fae0..5155764b9d 100644 --- a/apps/wps-display.c +++ b/apps/wps-display.c | |||
@@ -327,7 +327,7 @@ static char* get_tag(struct mp3entry* id3, | |||
327 | 327 | ||
328 | case 'r': /* Remaining Time in Song */ | 328 | case 'r': /* Remaining Time in Song */ |
329 | flags->dynamic = true; | 329 | flags->dynamic = true; |
330 | format_time(buf, buf_size, id3->length - id3->elapsed + ff_rewind_count); | 330 | format_time(buf, buf_size, id3->length - id3->elapsed - ff_rewind_count); |
331 | return buf; | 331 | return buf; |
332 | 332 | ||
333 | case 't': /* Total Time */ | 333 | case 't': /* Total Time */ |
@@ -645,10 +645,15 @@ bool draw_player_progress(struct mp3entry* id3, int ff_rewwind_count) | |||
645 | 645 | ||
646 | memset(binline, 1, sizeof binline); | 646 | memset(binline, 1, sizeof binline); |
647 | memset(player_progressbar, 1, sizeof player_progressbar); | 647 | memset(player_progressbar, 1, sizeof player_progressbar); |
648 | if(wps_time_countup == false) | 648 | if(id3->elapsed >= id3->length) |
649 | songpos = ((id3->elapsed - ff_rewwind_count) * 36) / id3->length; | 649 | songpos = 0; |
650 | else | 650 | else |
651 | songpos = ((id3->elapsed + ff_rewwind_count) * 36) / id3->length; | 651 | { |
652 | if(wps_time_countup == false) | ||
653 | songpos = ((id3->elapsed - ff_rewwind_count) * 36) / id3->length; | ||
654 | else | ||
655 | songpos = ((id3->elapsed + ff_rewwind_count) * 36) / id3->length; | ||
656 | } | ||
652 | for (i=0; i < songpos; i++) | 657 | for (i=0; i < songpos; i++) |
653 | binline[i] = 0; | 658 | binline[i] = 0; |
654 | 659 | ||