Santiy check shouldnt have been commented out

Show the ? icon on the remote if the requested icon (from a .icons file) isnt in the remote viewer iconset


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13182 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2007-04-16 12:50:01 +00:00
parent 4a16739bdd
commit b6658bbeef

View file

@ -134,9 +134,16 @@ void screen_put_iconxy(struct screen * display,
else if (icon >= Icon_Last_Themeable)
{
icon -= Icon_Last_Themeable;
if (!viewer_icons_loaded[screen]/* ||
(icon*ICON_HEIGHT(screen) > viewer_iconset[screen].height)*/)
if (!viewer_icons_loaded[screen] ||
(icon*ICON_HEIGHT(screen) > viewer_iconset[screen].height))
{
#ifdef HAVE_REMOTE_LCD
if (screen == SCREEN_REMOTE)
{
screen_put_iconxy(display, xpos, ypos, Icon_Questionmark);
return;
}
#endif
screen_clear_area(display, xpos, ypos,
ICON_WIDTH(screen), ICON_HEIGHT(screen));
return;