From 2dbe569aff3d7f5cab3efff30b6467e02560df91 Mon Sep 17 00:00:00 2001 From: Marcin Bukat Date: Wed, 29 Sep 2010 21:09:03 +0000 Subject: fix red simple_resize_bitmap() can deal with greylib now but I missed that it was compiled only for LCD_DEPTH > 1 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28187 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/lib/pluginlib_bmp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'apps/plugins/lib/pluginlib_bmp.c') diff --git a/apps/plugins/lib/pluginlib_bmp.c b/apps/plugins/lib/pluginlib_bmp.c index 708abfa4a4..535742ec78 100644 --- a/apps/plugins/lib/pluginlib_bmp.c +++ b/apps/plugins/lib/pluginlib_bmp.c @@ -26,8 +26,7 @@ #include "file.h" #include "system.h" -#if LCD_DEPTH > 1 /* save is only available for color, resize for >1bpp */ -#ifdef HAVE_LCD_COLOR +#if defined(HAVE_LCD_COLOR) && LCD_DEPTH > 1 #define LE16(x) (htole16(x))&0xff, ((htole16(x))>>8)&0xff #define LE32(x) (htole32(x))&0xff, ((htole32(x))>>8)&0xff, ((htole32(x))>>16)&0xff, ((htole32(x))>>24)&0xff /** @@ -134,7 +133,6 @@ void simple_resize_bitmap(struct bitmap *src, struct bitmap *dst) yr += yrstep; } } -#endif /* LCD_DEPTH > 1 */ #include "wrappers.h" -- cgit v1.2.3