mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-10 05:32:40 -05:00
Set margins when clearing screen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@978 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
4b422aaa36
commit
23ed32cf41
1 changed files with 2 additions and 9 deletions
11
apps/tree.c
11
apps/tree.c
|
|
@ -149,6 +149,8 @@ static int showdir(char *path, int start)
|
||||||
lcd_clear_display();
|
lcd_clear_display();
|
||||||
#ifdef HAVE_LCD_BITMAP
|
#ifdef HAVE_LCD_BITMAP
|
||||||
lcd_putsxy(0,0, "[Browse]",0);
|
lcd_putsxy(0,0, "[Browse]",0);
|
||||||
|
lcd_setmargins(0,MARGIN_Y);
|
||||||
|
lcd_setfont(0);
|
||||||
lcd_update();
|
lcd_update();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
@ -231,17 +233,9 @@ bool dirbrowse(char *root)
|
||||||
{
|
{
|
||||||
char buf[255];
|
char buf[255];
|
||||||
int i;
|
int i;
|
||||||
lcd_clear_display();
|
|
||||||
|
|
||||||
#ifdef HAVE_LCD_BITMAP
|
|
||||||
lcd_putsxy(0,0, "[Browse]",0);
|
|
||||||
lcd_setmargins(0,MARGIN_Y);
|
|
||||||
lcd_setfont(0);
|
|
||||||
#endif
|
|
||||||
memcpy(currdir,root,sizeof(currdir));
|
memcpy(currdir,root,sizeof(currdir));
|
||||||
|
|
||||||
numentries = showdir(root, start);
|
numentries = showdir(root, start);
|
||||||
|
|
||||||
if (numentries == -1)
|
if (numentries == -1)
|
||||||
return -1; /* root is not a directory */
|
return -1; /* root is not a directory */
|
||||||
|
|
||||||
|
|
@ -314,7 +308,6 @@ bool dirbrowse(char *root)
|
||||||
playing = 0;
|
playing = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
numentries = showdir(currdir, start);
|
numentries = showdir(currdir, start);
|
||||||
lcd_puts(0, LINE_Y+dircursor, CURSOR_CHAR);
|
lcd_puts(0, LINE_Y+dircursor, CURSOR_CHAR);
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue