diff options
| author | Jonathan Gordon <rockbox@jdgordon.info> | 2007-04-16 09:14:36 +0000 |
|---|---|---|
| committer | Jonathan Gordon <rockbox@jdgordon.info> | 2007-04-16 09:14:36 +0000 |
| commit | 6a5cc0bd25bd468c79e453fa49f353edd824141a (patch) | |
| tree | 8b406e8390550ff8b87eae3214309867574657f0 /apps/tree.c | |
| parent | 7afe2e86931313653d4dedb6d5167c79c2822aba (diff) | |
| download | rockbox-6a5cc0bd25bd468c79e453fa49f353edd824141a.zip rockbox-6a5cc0bd25bd468c79e453fa49f353edd824141a.tar.gz rockbox-6a5cc0bd25bd468c79e453fa49f353edd824141a.tar.bz2 rockbox-6a5cc0bd25bd468c79e453fa49f353edd824141a.tar.xz | |
Customizable icons for all bitmap targets. (FS#7013)
http://www.rockbox.org/twiki/bin/view/Main/CustomIcons for info on format and how to load them
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13177 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tree.c')
| -rw-r--r-- | apps/tree.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/tree.c b/apps/tree.c index 4e4d4c7..944f768 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -219,20 +219,20 @@ static char * tree_get_filename(int selected_item, void * data, char *buffer) } -static void tree_get_fileicon(int selected_item, void * data, ICON * icon) +static int tree_get_fileicon(int selected_item, void * data) { struct tree_context * local_tc=(struct tree_context *)data; #ifdef HAVE_TAGCACHE bool id3db = *(local_tc->dirfilter) == SHOW_ID3DB; if (id3db) { - *icon = (ICON)tagtree_get_icon(&tc); + return tagtree_get_icon(&tc); } else #endif { struct entry* dc = local_tc->dircache; struct entry* e = &dc[selected_item]; - *icon = (ICON)filetype_get_icon(e->attr); + return filetype_get_icon(e->attr); } } |