summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2002-10-28 09:44:24 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2002-10-28 09:44:24 +0000
commitc225790e26d907593565b316dd946b6d2054f7a3 (patch)
tree45ad727c64149ab9cd7e63b991a6263bc830934b
parent1a2712072b79025b1741b6f576cc9164c06242e7 (diff)
downloadrockbox-c225790e26d907593565b316dd946b6d2054f7a3.tar.gz
rockbox-c225790e26d907593565b316dd946b6d2054f7a3.zip
Now clears the resume point at end-of-list. This fixes bug #627344.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2756 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/wps.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/wps.c b/apps/wps.c
index dd3649e838..3e48333818 100644
--- a/apps/wps.c
+++ b/apps/wps.c
@@ -406,14 +406,16 @@ static bool ffwd_rew(int button)
406static bool update(void) 406static bool update(void)
407{ 407{
408 bool track_changed = mpeg_has_changed_track(); 408 bool track_changed = mpeg_has_changed_track();
409 bool retcode = false;
409 410
410 if (track_changed) 411 if (track_changed)
411 { 412 {
412 lcd_stop_scroll(); 413 lcd_stop_scroll();
413 id3 = mpeg_current_track(); 414 id3 = mpeg_current_track();
414 if (wps_display(id3)) 415 if (wps_display(id3))
415 return true; 416 retcode = true;
416 wps_refresh(id3,0,true); 417 else
418 wps_refresh(id3,0,true);
417 } 419 }
418 420
419 if (id3) 421 if (id3)
@@ -437,7 +439,7 @@ static bool update(void)
437 settings_save(); 439 settings_save();
438 } 440 }
439 441
440 return false; 442 return retcode;
441} 443}
442 444
443 445