forked from len0rd/rockbox
Fix folder icons in tagcache
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9878 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a85b23fa5b
commit
000397dc69
1 changed files with 4 additions and 13 deletions
|
@ -816,19 +816,10 @@ const unsigned char* tagtree_get_icon(struct tree_context* c)
|
||||||
int tagtree_get_icon(struct tree_context* c)
|
int tagtree_get_icon(struct tree_context* c)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
int icon;
|
int icon = Icon_Folder;
|
||||||
|
|
||||||
switch (tagtree_get_attr(c))
|
if (tagtree_get_attr(c) == TREE_ATTR_MPA)
|
||||||
{
|
icon = Icon_Audio;
|
||||||
case TREE_ATTR_MPA:
|
|
||||||
icon = Icon_Audio;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case ATTR_DIRECTORY:
|
|
||||||
default:
|
|
||||||
icon = Icon_Folder;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef HAVE_LCD_BITMAP
|
#ifdef HAVE_LCD_BITMAP
|
||||||
return bitmap_icons_6x8[icon];
|
return bitmap_icons_6x8[icon];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue