diff options
Diffstat (limited to 'apps/plugins/lib/pluginlib_bmp.h')
-rw-r--r-- | apps/plugins/lib/pluginlib_bmp.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/apps/plugins/lib/pluginlib_bmp.h b/apps/plugins/lib/pluginlib_bmp.h index 0e7a0a4933..17844a8e38 100644 --- a/apps/plugins/lib/pluginlib_bmp.h +++ b/apps/plugins/lib/pluginlib_bmp.h | |||
@@ -24,12 +24,11 @@ | |||
24 | #include "lcd.h" | 24 | #include "lcd.h" |
25 | #include "plugin.h" | 25 | #include "plugin.h" |
26 | 26 | ||
27 | #if LCD_DEPTH > 1 /* save is only available for color, resize for >1bpp */ | ||
28 | #ifdef HAVE_LCD_COLOR | 27 | #ifdef HAVE_LCD_COLOR |
29 | /** | 28 | /** |
30 | * Save bitmap to file | 29 | * Save bitmap to file |
31 | */ | 30 | */ |
32 | int save_bmp_file( char* filename, struct bitmap *bm, const struct plugin_api* rb ); | 31 | int save_bmp_file( char* filename, struct bitmap *bm ); |
33 | #endif | 32 | #endif |
34 | 33 | ||
35 | /** | 34 | /** |
@@ -44,13 +43,4 @@ void simple_resize_bitmap(struct bitmap *src, struct bitmap *dst); | |||
44 | */ | 43 | */ |
45 | void smooth_resize_bitmap(struct bitmap *src, struct bitmap *dst); | 44 | void smooth_resize_bitmap(struct bitmap *src, struct bitmap *dst); |
46 | 45 | ||
47 | #else | ||
48 | /* | ||
49 | BMP loader is built with scaling support in pluginlib on 1bpp targets, as | ||
50 | these do not provide scaling support in the core BMP loader. bmp_init is | ||
51 | needed to copy the plugin API pointer for the pluginlib loader's use. | ||
52 | */ | ||
53 | void bmp_init(const struct plugin_api *api); | ||
54 | #endif | ||
55 | |||
56 | #endif | 46 | #endif |