diff options
| author | Miika Pekkarinen <miipekk@ihme.org> | 2005-11-21 13:23:06 +0000 |
|---|---|---|
| committer | Miika Pekkarinen <miipekk@ihme.org> | 2005-11-21 13:23:06 +0000 |
| commit | caee4b3e3703c78c2bd70b211f06682eb88712d5 (patch) | |
| tree | 3a253f06bb558e1e000aedb536785c1217f3a900 | |
| parent | 4394cc787e2a83dd8da92f9ab0e6cb25ee188e54 (diff) | |
| download | rockbox-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
| -rw-r--r-- | apps/playlist.c | 7 |
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; |