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.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/apps/plugins/lib/pluginlib_bmp.c b/apps/plugins/lib/pluginlib_bmp.c
index b1dd53b15e..b9cfc4ded3 100644
--- a/apps/plugins/lib/pluginlib_bmp.c
+++ b/apps/plugins/lib/pluginlib_bmp.c
@@ -34,7 +34,7 @@
34/** 34/**
35 * Save to 24 bit bitmap. 35 * Save to 24 bit bitmap.
36 */ 36 */
37int save_bmp_file( char* filename, struct bitmap *bm, const struct plugin_api* rb ) 37int save_bmp_file( char* filename, struct bitmap *bm )
38{ 38{
39 /* I'm not really sure about this one :) */ 39 /* I'm not really sure about this one :) */
40 int line_width = bm->width*3+((bm->width*3)%4?4-((bm->width*3)%4):0); 40 int line_width = bm->width*3+((bm->width*3)%4?4-((bm->width*3)%4):0);
@@ -125,14 +125,7 @@ void simple_resize_bitmap(struct bitmap *src, struct bitmap *dst)
125#else /* LCD_DEPTH == 1 */ 125#else /* LCD_DEPTH == 1 */
126#include "wrappers.h" 126#include "wrappers.h"
127 127
128static const struct plugin_api *rb;
129
130/* import the core bmp loader */ 128/* import the core bmp loader */
131#include "../../recorder/bmp.c" 129#include "../../recorder/bmp.c"
132 130
133/* initialize rb for use by the bmp loader */
134void bmp_init(const struct plugin_api *api)
135{
136 rb = api;
137}
138#endif 131#endif