From 23ed32cf4179ab8f174e72dd3887b9127babc013 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Stenberg?= Date: Wed, 12 Jun 2002 15:17:34 +0000 Subject: Set margins when clearing screen git-svn-id: svn://svn.rockbox.org/rockbox/trunk@978 a1c6a512-1295-4272-9138-f99709370657 --- apps/tree.c | 11 ++--------- 1 file 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; -- cgit v1.2.3