From ceceba6d3b835e9e8abe9d3ba117f876a848a3df Mon Sep 17 00:00:00 2001 From: Henrik Backe Date: Tue, 21 Sep 2004 20:11:32 +0000 Subject: Fixed broken rewind in wps git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5102 a1c6a512-1295-4272-9138-f99709370657 --- apps/wps.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'apps') 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 -- cgit v1.2.3