diff options
author | Björn Stenberg <bjorn@haxx.se> | 2002-08-09 08:54:46 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2002-08-09 08:54:46 +0000 |
commit | a2f9fb6a33d1fe60d93c41f72abe9e35d0013ea4 (patch) | |
tree | 2c8a9740bd76514a13642b0050b175f1b1bf906e /apps | |
parent | 54ad65d2f53e040a04f1ea81b831c7c8b8f4f9ca (diff) | |
download | rockbox-a2f9fb6a33d1fe60d93c41f72abe9e35d0013ea4.tar.gz rockbox-a2f9fb6a33d1fe60d93c41f72abe9e35d0013ea4.zip |
Support double negative wrap (with a half nelson)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1632 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/playlist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/playlist.c b/apps/playlist.c index cbd8eeb6a2..92a7ad979b 100644 --- a/apps/playlist.c +++ b/apps/playlist.c | |||
@@ -78,7 +78,7 @@ char* playlist_next(int steps) | |||
78 | char *dir_end; | 78 | char *dir_end; |
79 | 79 | ||
80 | playlist.index = (playlist.index+steps) % playlist.amount; | 80 | playlist.index = (playlist.index+steps) % playlist.amount; |
81 | if ( playlist.index < 0 ) { | 81 | while ( playlist.index < 0 ) { |
82 | if ( global_settings.loop_playlist ) | 82 | if ( global_settings.loop_playlist ) |
83 | playlist.index += playlist.amount; | 83 | playlist.index += playlist.amount; |
84 | else | 84 | else |