From caee4b3e3703c78c2bd70b211f06682eb88712d5 Mon Sep 17 00:00:00 2001 From: Miika Pekkarinen Date: Mon, 21 Nov 2005 13:23:06 +0000 Subject: One more fix to revert a part of an incorrect change from the previous commit. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8023 a1c6a512-1295-4272-9138-f99709370657 --- apps/playlist.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'apps') diff --git a/apps/playlist.c b/apps/playlist.c index f842f22ec3..81265813c4 100644 --- a/apps/playlist.c +++ b/apps/playlist.c @@ -916,11 +916,16 @@ static int calculate_step_count(const struct playlist_info *playlist, int steps) int index; int stepped_count = 0; - count = steps; if (steps < 0) + { direction = -1; + count = -steps; + } else + { direction = 1; + count = steps; + } index = playlist->index; i = 0; -- cgit v1.2.3