From 4498b5e9a36a3a00f283b7e3b29dcddf775836db Mon Sep 17 00:00:00 2001 From: Justin Heiner Date: Tue, 3 Sep 2002 16:37:12 +0000 Subject: Changed Player Tree-Icon display to not show any icon for unknown files git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2155 a1c6a512-1295-4272-9138-f99709370657 --- apps/tree.c | 7 +++++-- 1 file 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) CURSOR_X * 6 + CURSOR_WIDTH, MARGIN_Y+(i-start)*line_height, 6, 8, true); #else - lcd_define_pattern((i-start)*8,tree_icons_5x7[icon_type],8); - lcd_putc(LINE_X-1, i-start, i-start); + if(icon_type!=0) + { + lcd_define_pattern((i-start)*8,tree_icons_5x7[icon_type],8); + lcd_putc(LINE_X-1, i-start, i-start); + } #endif /* if MP3 filter is on, cut off the extension */ -- cgit v1.2.3