diff options
Diffstat (limited to 'apps/plugins/rockpaint.c')
-rw-r--r-- | apps/plugins/rockpaint.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/apps/plugins/rockpaint.c b/apps/plugins/rockpaint.c index 96ae7c5af5..9cfbf7c915 100644 --- a/apps/plugins/rockpaint.c +++ b/apps/plugins/rockpaint.c | |||
@@ -295,9 +295,7 @@ extern int errno; | |||
295 | int errno; | 295 | int errno; |
296 | #endif | 296 | #endif |
297 | 297 | ||
298 | static const struct plugin_api* rb; | 298 | MEM_FUNCTION_WRAPPERS; |
299 | |||
300 | MEM_FUNCTION_WRAPPERS(rb); | ||
301 | 299 | ||
302 | static int drawcolor=0; /* Current color (in palette) */ | 300 | static int drawcolor=0; /* Current color (in palette) */ |
303 | static int bgdrawcolor=9; /* Current background color (in palette) */ | 301 | static int bgdrawcolor=9; /* Current background color (in palette) */ |
@@ -3009,14 +3007,11 @@ static int save_bitmap( char *file ) | |||
3009 | bm.height = ROWS; | 3007 | bm.height = ROWS; |
3010 | bm.width = COLS; | 3008 | bm.width = COLS; |
3011 | bm.format = FORMAT_NATIVE; | 3009 | bm.format = FORMAT_NATIVE; |
3012 | return save_bmp_file( file, &bm, rb ); | 3010 | return save_bmp_file( file, &bm ); |
3013 | } | 3011 | } |
3014 | 3012 | ||
3015 | enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter) | 3013 | enum plugin_status plugin_start(const void* parameter) |
3016 | { | 3014 | { |
3017 | /** must have stuff **/ | ||
3018 | rb = api; | ||
3019 | |||
3020 | rb->lcd_set_foreground(COLOR_WHITE); | 3015 | rb->lcd_set_foreground(COLOR_WHITE); |
3021 | rb->lcd_set_backdrop(NULL); | 3016 | rb->lcd_set_backdrop(NULL); |
3022 | rb->lcd_fillrect(0,0,LCD_WIDTH,LCD_HEIGHT); | 3017 | rb->lcd_fillrect(0,0,LCD_WIDTH,LCD_HEIGHT); |