summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeruaki Kawashima <teru@rockbox.org>2010-10-16 11:05:09 +0000
committerTeruaki Kawashima <teru@rockbox.org>2010-10-16 11:05:09 +0000
commit44780475bc53ad6a53c4d7216213c200c4d9063e (patch)
treed02403e167097f25c290b1840b967fedc5ffadf4
parentc1bfe4eb620afb2ac0d9a8baef706f8fc1a4b00f (diff)
downloadrockbox-44780475bc53ad6a53c4d7216213c200c4d9063e.tar.gz
rockbox-44780475bc53ad6a53c4d7216213c200c4d9063e.tar.bz2
rockbox-44780475bc53ad6a53c4d7216213c200c4d9063e.zip
Fix FS#10981: Viewers icons applied incorrectly.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28286 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/gui/icon.c2
1 files changed, 1 insertions, 1 deletions
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;