1
0
Fork 0
forked from len0rd/rockbox

Fixed broken rewind in wps

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5102 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Henrik Backe 2004-09-21 20:11:32 +00:00
parent 06c99f681d
commit ceceba6d3b

View file

@ -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