summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2002-09-03 09:39:30 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2002-09-03 09:39:30 +0000
commitc3a1bd2fce22d6e5efc21a8787cd49a4c1e8efdb (patch)
treef99fdf283899447469c1249b67bb7fc9c3e9d479 /apps
parent7f22b84793237c065de5b455e597fcc64fd50f0e (diff)
downloadrockbox-c3a1bd2fce22d6e5efc21a8787cd49a4c1e8efdb.tar.gz
rockbox-c3a1bd2fce22d6e5efc21a8787cd49a4c1e8efdb.zip
Smarter handling of custom chars
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2147 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/tree.c8
1 files 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)
173 int icon_type = 0; 173 int icon_type = 0;
174#ifdef HAVE_LCD_BITMAP 174#ifdef HAVE_LCD_BITMAP
175 int line_height = LINE_HEIGTH; 175 int line_height = LINE_HEIGTH;
176#else
177 char tmpstring[2];
178#endif 176#endif
179 int i; 177 int i;
180 int tree_max_on_screen; 178 int tree_max_on_screen;
@@ -310,10 +308,8 @@ static int showdir(char *path, int start)
310 CURSOR_X * 6 + CURSOR_WIDTH, 308 CURSOR_X * 6 + CURSOR_WIDTH,
311 MARGIN_Y+(i-start)*line_height, 6, 8, true); 309 MARGIN_Y+(i-start)*line_height, 6, 8, true);
312#else 310#else
313 lcd_define_pattern(0,tree_icons_5x7[0],LastTreeIcon*8); 311 lcd_define_pattern((i-start)*8,tree_icons_5x7[icon_type],8);
314 tmpstring[0] = icon_type; 312 lcd_putc(LINE_X-1, i-start, i-start);
315 tmpstring[1] = 0;
316 lcd_puts(LINE_X-1, i-start, tmpstring);
317#endif 313#endif
318 314
319 /* if MP3 filter is on, cut off the extension */ 315 /* if MP3 filter is on, cut off the extension */