summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorMiika Pekkarinen <miipekk@ihme.org>2005-11-21 13:23:06 +0000
committerMiika Pekkarinen <miipekk@ihme.org>2005-11-21 13:23:06 +0000
commitcaee4b3e3703c78c2bd70b211f06682eb88712d5 (patch)
tree3a253f06bb558e1e000aedb536785c1217f3a900 /apps
parent4394cc787e2a83dd8da92f9ab0e6cb25ee188e54 (diff)
downloadrockbox-caee4b3e3703c78c2bd70b211f06682eb88712d5.zip
rockbox-caee4b3e3703c78c2bd70b211f06682eb88712d5.tar.gz
rockbox-caee4b3e3703c78c2bd70b211f06682eb88712d5.tar.bz2
rockbox-caee4b3e3703c78c2bd70b211f06682eb88712d5.tar.xz
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
Diffstat (limited to 'apps')
-rw-r--r--apps/playlist.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index f842f22..8126581 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;