summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/tree.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/apps/tree.c b/apps/tree.c
index d43d46bc7d..b0a30cdbcf 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -173,8 +173,6 @@ static int showdir(char *path, int start)
173 int icon_type = 0; 173 int icon_type = 0;
174#ifdef HAVE_LCD_BITMAP 174#ifdef HAVE_LCD_BITMAP
175 int line_height = LINE_HEIGTH; 175 int line_height = LINE_HEIGTH;
176#else
177 char tmpstring[2];
178#endif 176#endif
179 int i; 177 int i;
180 int tree_max_on_screen; 178 int tree_max_on_screen;
@@ -310,10 +308,8 @@ static int showdir(char *path, int start)
310 CURSOR_X * 6 + CURSOR_WIDTH, 308 CURSOR_X * 6 + CURSOR_WIDTH,
311 MARGIN_Y+(i-start)*line_height, 6, 8, true); 309 MARGIN_Y+(i-start)*line_height, 6, 8, true);
312#else 310#else
313 lcd_define_pattern(0,tree_icons_5x7[0],LastTreeIcon*8); 311 lcd_define_pattern((i-start)*8,tree_icons_5x7[icon_type],8);
314 tmpstring[0] = icon_type; 312 lcd_putc(LINE_X-1, i-start, i-start);
315 tmpstring[1] = 0;
316 lcd_puts(LINE_X-1, i-start, tmpstring);
317#endif 313#endif
318 314
319 /* if MP3 filter is on, cut off the extension */ 315 /* if MP3 filter is on, cut off the extension */