Fix FS#10981: Viewers icons applied incorrectly.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28286 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Teruaki Kawashima 2010-10-16 11:05:09 +00:00
parent c1bfe4eb62
commit 44780475bc

View file

@ -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;