forked from len0rd/rockbox
Wrapping patch by Bill, Matthew and Lee
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1311 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
71ef31a2a9
commit
dad6d76ef2
1 changed files with 27 additions and 1 deletions
28
apps/tree.c
28
apps/tree.c
|
@ -358,7 +358,6 @@ bool dirbrowse(char *root)
|
||||||
put_cursorxy(0, CURSOR_Y + LINE_Y+dircursor, false);
|
put_cursorxy(0, CURSOR_Y + LINE_Y+dircursor, false);
|
||||||
dircursor--;
|
dircursor--;
|
||||||
put_cursorxy(0, CURSOR_Y + LINE_Y+dircursor, true);
|
put_cursorxy(0, CURSOR_Y + LINE_Y+dircursor, true);
|
||||||
lcd_update();
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (start) {
|
if (start) {
|
||||||
|
@ -366,7 +365,21 @@ bool dirbrowse(char *root)
|
||||||
numentries = showdir(currdir, start);
|
numentries = showdir(currdir, start);
|
||||||
put_cursorxy(0, CURSOR_Y + LINE_Y+dircursor, true);
|
put_cursorxy(0, CURSOR_Y + LINE_Y+dircursor, true);
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
if (numentries < TREE_MAX_ON_SCREEN) {
|
||||||
|
put_cursorxy(0, CURSOR_Y + LINE_Y+dircursor, false);
|
||||||
|
dircursor = numentries - 1;
|
||||||
|
put_cursorxy(0, CURSOR_Y + LINE_Y+dircursor, true);
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
start = numentries - TREE_MAX_ON_SCREEN;
|
||||||
|
dircursor = TREE_MAX_ON_SCREEN - 1;
|
||||||
|
numentries = showdir(currdir, start);
|
||||||
|
put_cursorxy(0, CURSOR_Y + LINE_Y + TREE_MAX_ON_SCREEN - 1, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
lcd_update();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TREE_NEXT:
|
case TREE_NEXT:
|
||||||
|
@ -382,6 +395,19 @@ bool dirbrowse(char *root)
|
||||||
put_cursorxy(0, CURSOR_Y + LINE_Y+dircursor, true);
|
put_cursorxy(0, CURSOR_Y + LINE_Y+dircursor, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
if(numentries < TREE_MAX_ON_SCREEN) {
|
||||||
|
put_cursorxy(0, CURSOR_Y + LINE_Y+dircursor, false);
|
||||||
|
start = dircursor = 0;
|
||||||
|
put_cursorxy(0, CURSOR_Y + LINE_Y+dircursor, true);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
start = dircursor = 0;
|
||||||
|
numentries = showdir(currdir, start);
|
||||||
|
put_cursorxy(0, CURSOR_Y + LINE_Y+dircursor, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
lcd_update();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TREE_MENU: {
|
case TREE_MENU: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue