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 /apps/tree.c | |
parent | 8d20e9915ffe131b9edbce3caeaf85b915a4bc3d (diff) | |
download | rockbox-8415ab9a74553244dd3970e0d4036a4e9eeb47a4.tar.gz rockbox-8415ab9a74553244dd3970e0d4036a4e9eeb47a4.zip |
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
Diffstat (limited to 'apps/tree.c')
-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) | |||
394 | browse_speed++; /* increase the browse speed every time we get here */ | 394 | browse_speed++; /* increase the browse speed every time we get here */ |
395 | if(filesindir) { | 395 | if(filesindir) { |
396 | if(dircursor) { | 396 | if(dircursor) { |
397 | if (browse_speed < 7) { | 397 | if (browse_speed < TREE_MAX_ON_SCREEN - 1) { |
398 | /* moving the cursor up through a full screen */ | 398 | /* moving the cursor up through a full screen */ |
399 | put_cursorxy(0, CURSOR_Y + LINE_Y+dircursor, | 399 | put_cursorxy(0, CURSOR_Y + LINE_Y+dircursor, |
400 | false); | 400 | false); |
@@ -412,8 +412,8 @@ bool dirbrowse(char *root) | |||
412 | else { | 412 | else { |
413 | if (start) { | 413 | if (start) { |
414 | /* leaving the cursor at top line and moving screen down */ | 414 | /* leaving the cursor at top line and moving screen down */ |
415 | if (browse_speed >=7) | 415 | if (browse_speed >=TREE_MAX_ON_SCREEN-1) |
416 | start = start - 7; | 416 | start = start - TREE_MAX_ON_SCREEN - 1; |
417 | else | 417 | else |
418 | start--; | 418 | start--; |
419 | if (start<0) | 419 | if (start<0) |