diff options
| author | Linus Nielsen Feltzing <linus@haxx.se> | 2002-09-03 09:39:30 +0000 |
|---|---|---|
| committer | Linus Nielsen Feltzing <linus@haxx.se> | 2002-09-03 09:39:30 +0000 |
| commit | c3a1bd2fce22d6e5efc21a8787cd49a4c1e8efdb (patch) | |
| tree | f99fdf283899447469c1249b67bb7fc9c3e9d479 /apps/tree.c | |
| parent | 7f22b84793237c065de5b455e597fcc64fd50f0e (diff) | |
| download | rockbox-c3a1bd2fce22d6e5efc21a8787cd49a4c1e8efdb.zip rockbox-c3a1bd2fce22d6e5efc21a8787cd49a4c1e8efdb.tar.gz rockbox-c3a1bd2fce22d6e5efc21a8787cd49a4c1e8efdb.tar.bz2 rockbox-c3a1bd2fce22d6e5efc21a8787cd49a4c1e8efdb.tar.xz | |
Smarter handling of custom chars
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2147 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tree.c')
| -rw-r--r-- | apps/tree.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/apps/tree.c b/apps/tree.c index d43d46b..b0a30cd 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 */ |