From 44780475bc53ad6a53c4d7216213c200c4d9063e Mon Sep 17 00:00:00 2001 From: Teruaki Kawashima Date: Sat, 16 Oct 2010 11:05:09 +0000 Subject: [PATCH] Fix FS#10981: Viewers icons applied incorrectly. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28286 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/icon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/gui/icon.c b/apps/gui/icon.c index 73c0fb598c..299af5d0f4 100644 --- a/apps/gui/icon.c +++ b/apps/gui/icon.c @@ -143,7 +143,7 @@ void screen_put_iconxy(struct screen * display, icon -= Icon_Last_Themeable; if (!viewer_icons_loaded[screen] || (global_status.viewer_icon_count * height > iconset->height) || - (icon * height > iconset->height)) + (icon * height + height > iconset->height)) { screen_put_iconxy(display, xpos, ypos, Icon_Questionmark); return;