summaryrefslogtreecommitdiff
path: root/apps/gui/icon.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-04-22 08:50:24 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-04-22 08:50:24 +0000
commit9d3694ced6bd3a00ef9fca2522cf9821f945cba7 (patch)
tree6b68b816b868549bb4f17daaccf5731fcaba685d /apps/gui/icon.c
parent814d402d4c9c011ee7e357e74cca6a64176a33d8 (diff)
downloadrockbox-9d3694ced6bd3a00ef9fca2522cf9821f945cba7.tar.gz
rockbox-9d3694ced6bd3a00ef9fca2522cf9821f945cba7.zip
Fix FS#7056 - dont display garbage if the viewer icon set and the main iconset have different icon heights
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13237 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/icon.c')
-rw-r--r--apps/gui/icon.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/apps/gui/icon.c b/apps/gui/icon.c
index 37eb1a715f..968d83548f 100644
--- a/apps/gui/icon.c
+++ b/apps/gui/icon.c
@@ -129,16 +129,11 @@ void screen_put_iconxy(struct screen * display,
129 { 129 {
130 icon -= Icon_Last_Themeable; 130 icon -= Icon_Last_Themeable;
131 if (!viewer_icons_loaded[screen] || 131 if (!viewer_icons_loaded[screen] ||
132 (global_status.viewer_icon_count*height
133 > viewer_iconset[screen].height) ||
132 (icon * height > viewer_iconset[screen].height)) 134 (icon * height > viewer_iconset[screen].height))
133 { 135 {
134#if defined(HAVE_REMOTE_LCD) && (NB_SCREENS > 1) 136 screen_put_iconxy(display, xpos, ypos, Icon_Questionmark);
135 if (screen == SCREEN_REMOTE)
136 {
137 screen_put_iconxy(display, xpos, ypos, Icon_Questionmark);
138 return;
139 }
140#endif
141 screen_clear_area(display, xpos, ypos, width, height);
142 return; 137 return;
143 } 138 }
144 data = viewer_iconset[screen].data; 139 data = viewer_iconset[screen].data;