mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
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:
parent
8d20e9915f
commit
8415ab9a74
1 changed files with 3 additions and 3 deletions
|
|
@ -394,7 +394,7 @@ bool dirbrowse(char *root)
|
||||||
browse_speed++; /* increase the browse speed every time we get here */
|
browse_speed++; /* increase the browse speed every time we get here */
|
||||||
if(filesindir) {
|
if(filesindir) {
|
||||||
if(dircursor) {
|
if(dircursor) {
|
||||||
if (browse_speed < 7) {
|
if (browse_speed < TREE_MAX_ON_SCREEN - 1) {
|
||||||
/* moving the cursor up through a full screen */
|
/* moving the cursor up through a full screen */
|
||||||
put_cursorxy(0, CURSOR_Y + LINE_Y+dircursor,
|
put_cursorxy(0, CURSOR_Y + LINE_Y+dircursor,
|
||||||
false);
|
false);
|
||||||
|
|
@ -412,8 +412,8 @@ bool dirbrowse(char *root)
|
||||||
else {
|
else {
|
||||||
if (start) {
|
if (start) {
|
||||||
/* leaving the cursor at top line and moving screen down */
|
/* leaving the cursor at top line and moving screen down */
|
||||||
if (browse_speed >=7)
|
if (browse_speed >=TREE_MAX_ON_SCREEN-1)
|
||||||
start = start - 7;
|
start = start - TREE_MAX_ON_SCREEN - 1;
|
||||||
else
|
else
|
||||||
start--;
|
start--;
|
||||||
if (start<0)
|
if (start<0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue