From c3a1bd2fce22d6e5efc21a8787cd49a4c1e8efdb Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Tue, 3 Sep 2002 09:39:30 +0000 Subject: Smarter handling of custom chars git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2147 a1c6a512-1295-4272-9138-f99709370657 --- apps/tree.c | 8 ++------ 1 file 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) int icon_type = 0; #ifdef HAVE_LCD_BITMAP int line_height = LINE_HEIGTH; -#else - char tmpstring[2]; #endif int i; int tree_max_on_screen; @@ -310,10 +308,8 @@ 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(0,tree_icons_5x7[0],LastTreeIcon*8); - tmpstring[0] = icon_type; - tmpstring[1] = 0; - lcd_puts(LINE_X-1, i-start, tmpstring); + 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