diff options
Diffstat (limited to 'apps/plugins/lib/bmp.c')
-rw-r--r-- | apps/plugins/lib/bmp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/plugins/lib/bmp.c b/apps/plugins/lib/bmp.c index b3e0e2b948..1cb24d3ea0 100644 --- a/apps/plugins/lib/bmp.c +++ b/apps/plugins/lib/bmp.c | |||
@@ -27,7 +27,7 @@ | |||
27 | #include "lcd.h" | 27 | #include "lcd.h" |
28 | #include "system.h" | 28 | #include "system.h" |
29 | 29 | ||
30 | #if LCD_DEPTH > 1 | 30 | #if LCD_DEPTH > 1 /* save is only available for color, resize for >1bpp */ |
31 | #ifdef HAVE_LCD_COLOR | 31 | #ifdef HAVE_LCD_COLOR |
32 | #define LE16(x) (htole16(x))&0xff, ((htole16(x))>>8)&0xff | 32 | #define LE16(x) (htole16(x))&0xff, ((htole16(x))>>8)&0xff |
33 | #define LE32(x) (htole32(x))&0xff, ((htole32(x))>>8)&0xff, ((htole32(x))>>16)&0xff, ((htole32(x))>>24)&0xff | 33 | #define LE32(x) (htole32(x))&0xff, ((htole32(x))>>8)&0xff, ((htole32(x))>>16)&0xff, ((htole32(x))>>24)&0xff |
@@ -122,13 +122,15 @@ void simple_resize_bitmap(struct bitmap *src, struct bitmap *dst) | |||
122 | } | 122 | } |
123 | } | 123 | } |
124 | 124 | ||
125 | #else | 125 | #else /* LCD_DEPTH == 1 */ |
126 | #include "wrappers.h" | 126 | #include "wrappers.h" |
127 | 127 | ||
128 | static const struct plugin_api *rb; | 128 | static const struct plugin_api *rb; |
129 | 129 | ||
130 | /* import the core bmp loader */ | ||
130 | #include "../../recorder/bmp.c" | 131 | #include "../../recorder/bmp.c" |
131 | 132 | ||
133 | /* initialize rb for use by the bmp loader */ | ||
132 | void bmp_init(const struct plugin_api *api) | 134 | void bmp_init(const struct plugin_api *api) |
133 | { | 135 | { |
134 | rb = api; | 136 | rb = api; |