From 25123570c76f2055d3ae05d79741038c0e23c536 Mon Sep 17 00:00:00 2001 From: Karl Kurbjun Date: Fri, 4 Sep 2009 00:46:24 +0000 Subject: Fix STRIDE macro for multiscreen and add stride support for picture lib. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22615 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/icon.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'apps/gui/icon.c') 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, return; } data = viewer_iconset[screen].data; - stride = STRIDE( viewer_iconset[screen].width, + stride = STRIDE( display->screen_type, viewer_iconset[screen].width, viewer_iconset[screen].height); } else if (custom_icons_loaded[screen]) { data = user_iconset[screen].data; - stride = STRIDE( user_iconset[screen].width, + stride = STRIDE( display->screen_type, user_iconset[screen].width, user_iconset[screen].height); } else { data = inbuilt_icons[screen]; - stride = STRIDE(BMPWIDTH_default_icons, BMPHEIGHT_default_icons); + stride = STRIDE( display->screen_type, BMPWIDTH_default_icons, + BMPHEIGHT_default_icons); } /* add some left padding to the icons if they are on the edge */ if (xpos == 0) -- cgit v1.2.3