Support double negative wrap (with a half nelson)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1632 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2002-08-09 08:54:46 +00:00
parent 54ad65d2f5
commit a2f9fb6a33

View file

@ -78,7 +78,7 @@ char* playlist_next(int steps)
char *dir_end;
playlist.index = (playlist.index+steps) % playlist.amount;
if ( playlist.index < 0 ) {
while ( playlist.index < 0 ) {
if ( global_settings.loop_playlist )
playlist.index += playlist.amount;
else