summaryrefslogtreecommitdiff
path: root/apps/playlist.c
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/playlist.c
parent4394cc787e2a83dd8da92f9ab0e6cb25ee188e54 (diff)
downloadrockbox-caee4b3e3703c78c2bd70b211f06682eb88712d5.tar.gz
rockbox-caee4b3e3703c78c2bd70b211f06682eb88712d5.zip
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/playlist.c')
-rw-r--r--apps/playlist.c7
1 files changed, 6 insertions, 1 deletions
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)
916 int index; 916 int index;
917 int stepped_count = 0; 917 int stepped_count = 0;
918 918
919 count = steps;
920 if (steps < 0) 919 if (steps < 0)
920 {
921 direction = -1; 921 direction = -1;
922 count = -steps;
923 }
922 else 924 else
925 {
923 direction = 1; 926 direction = 1;
927 count = steps;
928 }
924 929
925 index = playlist->index; 930 index = playlist->index;
926 i = 0; 931 i = 0;