From b6658bbeef45b3b2db730bb8ca2bf0309d2ca917 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Mon, 16 Apr 2007 12:50:01 +0000 Subject: 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 --- apps/gui/icon.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'apps/gui') diff --git a/apps/gui/icon.c b/apps/gui/icon.c index 647c15434e..b844b4bb5b 100644 --- a/apps/gui/icon.c +++ b/apps/gui/icon.c @@ -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; -- cgit v1.2.3