1
0
Fork 0
forked from len0rd/rockbox

Smarter handling of custom chars

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2147 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2002-09-03 09:39:30 +00:00
parent 7f22b84793
commit c3a1bd2fce

View file

@ -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 */