From 9d3694ced6bd3a00ef9fca2522cf9821f945cba7 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Sun, 22 Apr 2007 08:50:24 +0000 Subject: Fix FS#7056 - dont display garbage if the viewer icon set and the main iconset have different icon heights git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13237 a1c6a512-1295-4272-9138-f99709370657 --- apps/filetypes.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'apps/filetypes.c') diff --git a/apps/filetypes.c b/apps/filetypes.c index 0daae1b617..69448a7946 100644 --- a/apps/filetypes.c +++ b/apps/filetypes.c @@ -145,10 +145,7 @@ void read_viewer_theme_file(void) custom_filetype_icons[0] = Icon_Folder; for (i=1; i global_status.viewer_icon_count) + global_status.viewer_icon_count = custom_filetype_icons[i]; + } + global_status.viewer_icon_count -= Icon_Last_Themeable; } /* remove all white spaces from string */ -- cgit v1.2.3