summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
149 lcd_clear_display(); 149 lcd_clear_display();
150#ifdef HAVE_LCD_BITMAP 150#ifdef HAVE_LCD_BITMAP
151 lcd_putsxy(0,0, "[Browse]",0); 151 lcd_putsxy(0,0, "[Browse]",0);
152 lcd_setmargins(0,MARGIN_Y);
153 lcd_setfont(0);
152 lcd_update(); 154 lcd_update();
153#endif 155#endif
154 156
@@ -231,17 +233,9 @@ bool dirbrowse(char *root)
231{ 233{
232 char buf[255]; 234 char buf[255];
233 int i; 235 int i;
234 lcd_clear_display();
235 236
236#ifdef HAVE_LCD_BITMAP
237 lcd_putsxy(0,0, "[Browse]",0);
238 lcd_setmargins(0,MARGIN_Y);
239 lcd_setfont(0);
240#endif
241 memcpy(currdir,root,sizeof(currdir)); 237 memcpy(currdir,root,sizeof(currdir));
242
243 numentries = showdir(root, start); 238 numentries = showdir(root, start);
244
245 if (numentries == -1) 239 if (numentries == -1)
246 return -1; /* root is not a directory */ 240 return -1; /* root is not a directory */
247 241
@@ -314,7 +308,6 @@ bool dirbrowse(char *root)
314 playing = 0; 308 playing = 0;
315 } 309 }
316 } 310 }
317
318 numentries = showdir(currdir, start); 311 numentries = showdir(currdir, start);
319 lcd_puts(0, LINE_Y+dircursor, CURSOR_CHAR); 312 lcd_puts(0, LINE_Y+dircursor, CURSOR_CHAR);
320 break; 313 break;