diff options
| author | Jonathan Gordon <rockbox@jdgordon.info> | 2007-04-16 12:50:01 +0000 |
|---|---|---|
| committer | Jonathan Gordon <rockbox@jdgordon.info> | 2007-04-16 12:50:01 +0000 |
| commit | b6658bbeef45b3b2db730bb8ca2bf0309d2ca917 (patch) | |
| tree | 482de84af3f4c531df59552db09a40abce8a845f /apps/gui/icon.c | |
| parent | 4a16739bddbff2ecd629c8a131ddce9e96c93c3a (diff) | |
| download | rockbox-b6658bbeef45b3b2db730bb8ca2bf0309d2ca917.zip rockbox-b6658bbeef45b3b2db730bb8ca2bf0309d2ca917.tar.gz rockbox-b6658bbeef45b3b2db730bb8ca2bf0309d2ca917.tar.bz2 rockbox-b6658bbeef45b3b2db730bb8ca2bf0309d2ca917.tar.xz | |
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
Diffstat (limited to 'apps/gui/icon.c')
| -rw-r--r-- | apps/gui/icon.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/apps/gui/icon.c b/apps/gui/icon.c index 647c154..b844b4b 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; |