added support for players for high speed browsing, but will not be much faster than the default

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1567 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Eric Linenberg 2002-08-06 18:16:54 +00:00
parent 8d20e9915f
commit 8415ab9a74

View file

@ -394,7 +394,7 @@ bool dirbrowse(char *root)
browse_speed++; /* increase the browse speed every time we get here */
if(filesindir) {
if(dircursor) {
if (browse_speed < 7) {
if (browse_speed < TREE_MAX_ON_SCREEN - 1) {
/* moving the cursor up through a full screen */
put_cursorxy(0, CURSOR_Y + LINE_Y+dircursor,
false);
@ -412,8 +412,8 @@ bool dirbrowse(char *root)
else {
if (start) {
/* leaving the cursor at top line and moving screen down */
if (browse_speed >=7)
start = start - 7;
if (browse_speed >=TREE_MAX_ON_SCREEN-1)
start = start - TREE_MAX_ON_SCREEN - 1;
else
start--;
if (start<0)