forked from len0rd/rockbox
Don't try to scroll in an empty dir
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@989 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
3505278aa5
commit
fd99f2210f
1 changed files with 6 additions and 4 deletions
|
@ -240,6 +240,7 @@ bool dirbrowse(char *root)
|
|||
return -1; /* root is not a directory */
|
||||
|
||||
lcd_puts(0, dircursor, CURSOR_CHAR);
|
||||
if ( numentries )
|
||||
lcd_puts_scroll(LINE_X, LINE_Y+dircursor,
|
||||
dircacheptr[start+dircursor]->name);
|
||||
lcd_update();
|
||||
|
@ -357,6 +358,7 @@ bool dirbrowse(char *root)
|
|||
}
|
||||
|
||||
lcd_stop_scroll();
|
||||
if ( numentries )
|
||||
lcd_puts_scroll(LINE_X, LINE_Y+dircursor,
|
||||
dircacheptr[start+dircursor]->name);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue