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:
parent
54ad65d2f5
commit
a2f9fb6a33
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue