summaryrefslogtreecommitdiff
path: root/apps/tagtree.c
diff options
context:
space:
mode:
authorHardeep Sidhu <dyp@pobox.com>2006-05-05 07:54:19 +0000
committerHardeep Sidhu <dyp@pobox.com>2006-05-05 07:54:19 +0000
commit000397dc69c40e9b2a44745e743a2b8bb1b47eb3 (patch)
tree60aea6a2217cc882855250439cd2535933ea6756 /apps/tagtree.c
parenta85b23fa5bf8a56ca41adbf9fd53f52dc5ec2eed (diff)
downloadrockbox-000397dc69c40e9b2a44745e743a2b8bb1b47eb3.tar.gz
rockbox-000397dc69c40e9b2a44745e743a2b8bb1b47eb3.zip
Fix folder icons in tagcache
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9878 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tagtree.c')
-rw-r--r--apps/tagtree.c17
1 files changed, 4 insertions, 13 deletions
diff --git a/apps/tagtree.c b/apps/tagtree.c
index 0268dc5f64..0401ca8cee 100644
--- a/apps/tagtree.c
+++ b/apps/tagtree.c
@@ -774,7 +774,7 @@ struct tagentry* tagtree_get_entry(struct tree_context *c, int id)
774 /* Load the next chunk if necessary. */ 774 /* Load the next chunk if necessary. */
775 if (realid >= current_entry_count || realid < 0) 775 if (realid >= current_entry_count || realid < 0)
776 { 776 {
777 if (retrieve_entries(c, &tcs2, MAX(0, id - (current_entry_count / 2)), 777 if (retrieve_entries(c, &tcs2, MAX(0, id - (current_entry_count / 2)),
778 false) < 0) 778 false) < 0)
779 { 779 {
780 logf("retrieve failed"); 780 logf("retrieve failed");
@@ -816,19 +816,10 @@ const unsigned char* tagtree_get_icon(struct tree_context* c)
816int tagtree_get_icon(struct tree_context* c) 816int tagtree_get_icon(struct tree_context* c)
817#endif 817#endif
818{ 818{
819 int icon; 819 int icon = Icon_Folder;
820 820
821 switch (tagtree_get_attr(c)) 821 if (tagtree_get_attr(c) == TREE_ATTR_MPA)
822 { 822 icon = Icon_Audio;
823 case TREE_ATTR_MPA:
824 icon = Icon_Audio;
825 break;
826
827 case ATTR_DIRECTORY:
828 default:
829 icon = Icon_Folder;
830 break;
831 }
832 823
833#ifdef HAVE_LCD_BITMAP 824#ifdef HAVE_LCD_BITMAP
834 return bitmap_icons_6x8[icon]; 825 return bitmap_icons_6x8[icon];