summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2002-06-12 15:17:34 +0000
committerBjörn Stenberg <bjorn@haxx.se>2002-06-12 15:17:34 +0000
commit23ed32cf4179ab8f174e72dd3887b9127babc013 (patch)
tree6088faea0a5c9d68f1fdc086610438cfbe3ebd47 /apps
parent4b422aaa366191462e430a9c18f368e5e784efa2 (diff)
Set margins when clearing screen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@978 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/tree.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 578225a540..ec71b5c5f3 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -149,6 +149,8 @@ static int showdir(char *path, int start)
lcd_clear_display();
#ifdef HAVE_LCD_BITMAP
lcd_putsxy(0,0, "[Browse]",0);
+ lcd_setmargins(0,MARGIN_Y);
+ lcd_setfont(0);
lcd_update();
#endif
@@ -231,17 +233,9 @@ bool dirbrowse(char *root)
{
char buf[255];
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));
-
numentries = showdir(root, start);
-
if (numentries == -1)
return -1; /* root is not a directory */
@@ -314,7 +308,6 @@ bool dirbrowse(char *root)
playing = 0;
}
}
-
numentries = showdir(currdir, start);
lcd_puts(0, LINE_Y+dircursor, CURSOR_CHAR);
break;