diff options
author | Justin Heiner <jheiner@rockbox.org> | 2002-09-03 16:37:12 +0000 |
---|---|---|
committer | Justin Heiner <jheiner@rockbox.org> | 2002-09-03 16:37:12 +0000 |
commit | 4498b5e9a36a3a00f283b7e3b29dcddf775836db (patch) | |
tree | 80601ad5d7e67e7a754f7ce4865d69eda6dc3e41 /apps/tree.c | |
parent | abe11fd910f979f95454e3b44aba5a57570c6543 (diff) | |
download | rockbox-4498b5e9a36a3a00f283b7e3b29dcddf775836db.tar.gz rockbox-4498b5e9a36a3a00f283b7e3b29dcddf775836db.zip |
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
Diffstat (limited to 'apps/tree.c')
-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 */ |