Initialise the custom icons array correctly instead of just using the ? for all filetypes

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13194 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2007-04-17 09:17:23 +00:00
parent e9610dca80
commit 27643c6538

View file

@ -86,7 +86,12 @@ void read_viewer_theme_file(void)
custom_icons_loaded = false;
custom_filetype_icons[0] = Icon_Folder;
for (i=1; i<filetype_count; i++)
custom_filetype_icons[i] = Icon_Questionmark;
{
if (filetypes[i].icon < Icon_Last_Themeable)
custom_filetype_icons[i] = filetypes[i].icon;
else
custom_filetype_icons[i] = Icon_Questionmark;
}
snprintf(buffer, MAX_PATH, "%s/%s.icons", ICON_DIR,
global_settings.viewers_icon_file);