summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorHenrik Backe <henrik@backe.eu>2004-09-21 20:11:32 +0000
committerHenrik Backe <henrik@backe.eu>2004-09-21 20:11:32 +0000
commitceceba6d3b835e9e8abe9d3ba117f876a848a3df (patch)
tree807a0504ccce3fe54745ca5e460fc46081f6494b /apps
parent06c99f681dea5be5384f6331b1a4273f9b601de2 (diff)
Fixed broken rewind in wps
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5102 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/wps.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/wps.c b/apps/wps.c
index 49d7d3db36..8d49b5a478 100644
--- a/apps/wps.c
+++ b/apps/wps.c
@@ -170,7 +170,7 @@ static bool ffwd_rew(int button)
unsigned int step = 0; /* current ff/rewind step */
unsigned int max_step = 0; /* maximum ff/rewind step */
int ff_rewind_count = 0; /* current ff/rewind count (in ticks) */
- int direction = 1; /* forward=1 or backward=-1 */
+ int direction = -1; /* forward=1 or backward=-1 */
long accel_tick = 0; /* next time at which to bump the step size */
bool exit = false;
bool usb = false;
@@ -178,6 +178,7 @@ static bool ffwd_rew(int button)
while (!exit) {
switch ( button ) {
case WPS_FFWD:
+ direction = 1;
case WPS_REW:
if (ff_rewind)
{
@@ -220,8 +221,6 @@ static bool ffwd_rew(int button)
#ifdef HAVE_PLAYER_KEYPAD
lcd_stop_scroll();
#endif
- direction = (button & WPS_FFWD) ? 1 : -1;
-
if (direction > 0)
status_set_ffmode(STATUS_FASTFORWARD);
else