diff options
| author | Henrik Backe <henrik@backe.eu> | 2004-09-21 20:11:32 +0000 |
|---|---|---|
| committer | Henrik Backe <henrik@backe.eu> | 2004-09-21 20:11:32 +0000 |
| commit | ceceba6d3b835e9e8abe9d3ba117f876a848a3df (patch) | |
| tree | 807a0504ccce3fe54745ca5e460fc46081f6494b /apps | |
| parent | 06c99f681dea5be5384f6331b1a4273f9b601de2 (diff) | |
| download | rockbox-ceceba6d3b835e9e8abe9d3ba117f876a848a3df.zip rockbox-ceceba6d3b835e9e8abe9d3ba117f876a848a3df.tar.gz rockbox-ceceba6d3b835e9e8abe9d3ba117f876a848a3df.tar.bz2 rockbox-ceceba6d3b835e9e8abe9d3ba117f876a848a3df.tar.xz | |
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.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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 |