diff options
author | Christi Scarborough <christi@coraline.org> | 2006-01-31 14:29:51 +0000 |
---|---|---|
committer | Christi Scarborough <christi@coraline.org> | 2006-01-31 14:29:51 +0000 |
commit | ae0ae6d5cf85ecd578b58a37a9a1839acf88c2cb (patch) | |
tree | 4a5717e66ff077a045b5e726e7c457470faea403 /apps/gui | |
parent | cce79d38058efc58b2ca15ef63d06774d8487fe6 (diff) | |
download | rockbox-ae0ae6d5cf85ecd578b58a37a9a1839acf88c2cb.tar.gz rockbox-ae0ae6d5cf85ecd578b58a37a9a1839acf88c2cb.zip |
Small iPod colour BMP fix by linuxstd
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8504 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui')
-rw-r--r-- | apps/gui/gwps-common.c | 4 |
1 files changed, 4 insertions, 0 deletions
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, | |||
326 | 326 | ||
327 | if (ret > 0) | 327 | if (ret > 0) |
328 | { | 328 | { |
329 | #if LCD_DEPTH == 16 | ||
330 | if (ret % 2) ret++; | ||
331 | /* Always consume an even number of bytes */ | ||
332 | #endif | ||
329 | /* Update the image cache. */ | 333 | /* Update the image cache. */ |
330 | if (bmp_cache_write && bmp_cache_fd >= 0) | 334 | if (bmp_cache_write && bmp_cache_fd >= 0) |
331 | { | 335 | { |