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 | |
parent | 4a16739bddbff2ecd629c8a131ddce9e96c93c3a (diff) | |
download | rockbox-b6658bbeef45b3b2db730bb8ca2bf0309d2ca917.tar.gz rockbox-b6658bbeef45b3b2db730bb8ca2bf0309d2ca917.zip |
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')
-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 647c15434e..b844b4bb5b 100644 --- a/apps/gui/icon.c +++ b/apps/gui/icon.c | |||
@@ -134,9 +134,16 @@ void screen_put_iconxy(struct screen * display, | |||
134 | else if (icon >= Icon_Last_Themeable) | 134 | else if (icon >= Icon_Last_Themeable) |
135 | { | 135 | { |
136 | icon -= Icon_Last_Themeable; | 136 | icon -= Icon_Last_Themeable; |
137 | if (!viewer_icons_loaded[screen]/* || | 137 | if (!viewer_icons_loaded[screen] || |
138 | (icon*ICON_HEIGHT(screen) > viewer_iconset[screen].height)*/) | 138 | (icon*ICON_HEIGHT(screen) > viewer_iconset[screen].height)) |
139 | { | 139 | { |
140 | #ifdef HAVE_REMOTE_LCD | ||
141 | if (screen == SCREEN_REMOTE) | ||
142 | { | ||
143 | screen_put_iconxy(display, xpos, ypos, Icon_Questionmark); | ||
144 | return; | ||
145 | } | ||
146 | #endif | ||
140 | screen_clear_area(display, xpos, ypos, | 147 | screen_clear_area(display, xpos, ypos, |
141 | ICON_WIDTH(screen), ICON_HEIGHT(screen)); | 148 | ICON_WIDTH(screen), ICON_HEIGHT(screen)); |
142 | return; | 149 | return; |