diff options
-rw-r--r-- | apps/tree.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/tree.c b/apps/tree.c index 36ce52cad3..c9cbf4dae2 100644 --- a/apps/tree.c +++ b/apps/tree.c | |||
@@ -333,8 +333,11 @@ static int showdir(char *path, int start) | |||
333 | CURSOR_X * 6 + CURSOR_WIDTH, | 333 | CURSOR_X * 6 + CURSOR_WIDTH, |
334 | MARGIN_Y+(i-start)*line_height, 6, 8, true); | 334 | MARGIN_Y+(i-start)*line_height, 6, 8, true); |
335 | #else | 335 | #else |
336 | lcd_define_pattern((i-start)*8,tree_icons_5x7[icon_type],8); | 336 | if(icon_type!=0) |
337 | lcd_putc(LINE_X-1, i-start, i-start); | 337 | { |
338 | lcd_define_pattern((i-start)*8,tree_icons_5x7[icon_type],8); | ||
339 | lcd_putc(LINE_X-1, i-start, i-start); | ||
340 | } | ||
338 | #endif | 341 | #endif |
339 | 342 | ||
340 | /* if MP3 filter is on, cut off the extension */ | 343 | /* if MP3 filter is on, cut off the extension */ |