summaryrefslogtreecommitdiff
path: root/apps/plugins/lib/pluginlib_bmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lib/pluginlib_bmp.c')
-rw-r--r--apps/plugins/lib/pluginlib_bmp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/plugins/lib/pluginlib_bmp.c b/apps/plugins/lib/pluginlib_bmp.c
index 708abfa..535742e 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"