diff options
Diffstat (limited to 'apps/plugins/lib/bmp.c')
| -rw-r--r-- | apps/plugins/lib/bmp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/plugins/lib/bmp.c b/apps/plugins/lib/bmp.c index 03bdc73..20adc6d 100644 --- a/apps/plugins/lib/bmp.c +++ b/apps/plugins/lib/bmp.c @@ -24,6 +24,7 @@ #include "lcd.h" #include "system.h" +#ifdef HAVE_LCD_COLOR #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 /** @@ -82,6 +83,7 @@ int save_bmp_file( char* filename, struct bitmap *bm, struct plugin_api* rb ) rb->close( fh ); return 1; } +#endif /** Very simple image scale from src to dst (nearest neighbour). |