diff options
Diffstat (limited to 'apps/gui/icon.c')
-rw-r--r-- | apps/gui/icon.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/gui/icon.c b/apps/gui/icon.c index 74af4a0d90..53cfd87774 100644 --- a/apps/gui/icon.c +++ b/apps/gui/icon.c | |||
@@ -144,19 +144,20 @@ void screen_put_iconxy(struct screen * display, | |||
144 | return; | 144 | return; |
145 | } | 145 | } |
146 | data = viewer_iconset[screen].data; | 146 | data = viewer_iconset[screen].data; |
147 | stride = STRIDE( viewer_iconset[screen].width, | 147 | stride = STRIDE( display->screen_type, viewer_iconset[screen].width, |
148 | viewer_iconset[screen].height); | 148 | viewer_iconset[screen].height); |
149 | } | 149 | } |
150 | else if (custom_icons_loaded[screen]) | 150 | else if (custom_icons_loaded[screen]) |
151 | { | 151 | { |
152 | data = user_iconset[screen].data; | 152 | data = user_iconset[screen].data; |
153 | stride = STRIDE( user_iconset[screen].width, | 153 | stride = STRIDE( display->screen_type, user_iconset[screen].width, |
154 | user_iconset[screen].height); | 154 | user_iconset[screen].height); |
155 | } | 155 | } |
156 | else | 156 | else |
157 | { | 157 | { |
158 | data = inbuilt_icons[screen]; | 158 | data = inbuilt_icons[screen]; |
159 | stride = STRIDE(BMPWIDTH_default_icons, BMPHEIGHT_default_icons); | 159 | stride = STRIDE( display->screen_type, BMPWIDTH_default_icons, |
160 | BMPHEIGHT_default_icons); | ||
160 | } | 161 | } |
161 | /* add some left padding to the icons if they are on the edge */ | 162 | /* add some left padding to the icons if they are on the edge */ |
162 | if (xpos == 0) | 163 | if (xpos == 0) |