summaryrefslogtreecommitdiff
path: root/apps/gui/icon.c
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 /apps/gui/icon.c
parentc1bfe4eb620afb2ac0d9a8baef706f8fc1a4b00f (diff)
downloadrockbox-44780475bc53ad6a53c4d7216213c200c4d9063e.tar.gz
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
Diffstat (limited to 'apps/gui/icon.c')
-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,
143 icon -= Icon_Last_Themeable; 143 icon -= Icon_Last_Themeable;
144 if (!viewer_icons_loaded[screen] || 144 if (!viewer_icons_loaded[screen] ||
145 (global_status.viewer_icon_count * height > iconset->height) || 145 (global_status.viewer_icon_count * height > iconset->height) ||
146 (icon * height > iconset->height)) 146 (icon * height + height > iconset->height))
147 { 147 {
148 screen_put_iconxy(display, xpos, ypos, Icon_Questionmark); 148 screen_put_iconxy(display, xpos, ypos, Icon_Questionmark);
149 return; 149 return;