diff options
author | Eric Linenberg <elinenbe@umich.edu> | 2002-08-06 18:16:54 +0000 |
---|---|---|
committer | Eric Linenberg <elinenbe@umich.edu> | 2002-08-06 18:16:54 +0000 |
commit | 8415ab9a74553244dd3970e0d4036a4e9eeb47a4 (patch) | |
tree | 5d7e16d3a671203140225c63e8506a6499f9a7d4 | |
parent | 8d20e9915ffe131b9edbce3caeaf85b915a4bc3d (diff) |
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
-rw-r--r-- | apps/tree.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/tree.c b/apps/tree.c index 54e0b75551..d8270e3268 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -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) |