From ae0ae6d5cf85ecd578b58a37a9a1839acf88c2cb Mon Sep 17 00:00:00 2001 From: Christi Scarborough Date: Tue, 31 Jan 2006 14:29:51 +0000 Subject: Small iPod colour BMP fix by linuxstd git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8504 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/gwps-common.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apps/gui') diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c index 11e92a640d..1cda8c0f24 100644 --- a/apps/gui/gwps-common.c +++ b/apps/gui/gwps-common.c @@ -326,6 +326,10 @@ bool wps_data_preload_tags(struct wps_data *data, char *buf, if (ret > 0) { +#if LCD_DEPTH == 16 + if (ret % 2) ret++; + /* Always consume an even number of bytes */ +#endif /* Update the image cache. */ if (bmp_cache_write && bmp_cache_fd >= 0) { -- cgit v1.2.3