diff options
Diffstat (limited to 'apps/plugins/calculator.c')
-rw-r--r-- | apps/plugins/calculator.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/plugins/calculator.c b/apps/plugins/calculator.c index 7e6eb92b0e..7d93a24196 100644 --- a/apps/plugins/calculator.c +++ b/apps/plugins/calculator.c | |||
@@ -345,8 +345,7 @@ PLUGIN_HEADER | |||
345 | static struct ts_raster calc_raster = { X_0_POS, Y_1_POS, BUTTON_COLS*REC_WIDTH, BUTTON_ROWS*REC_HEIGHT, REC_WIDTH, REC_HEIGHT }; | 345 | static struct ts_raster calc_raster = { X_0_POS, Y_1_POS, BUTTON_COLS*REC_WIDTH, BUTTON_ROWS*REC_HEIGHT, REC_WIDTH, REC_HEIGHT }; |
346 | #endif | 346 | #endif |
347 | 347 | ||
348 | static const struct plugin_api* rb; | 348 | MEM_FUNCTION_WRAPPERS; |
349 | MEM_FUNCTION_WRAPPERS(rb); | ||
350 | 349 | ||
351 | enum { | 350 | enum { |
352 | basicButtons, | 351 | basicButtons, |
@@ -1628,10 +1627,9 @@ int handleButton(int button){ | |||
1628 | /* ----------------------------------------------------------------------- | 1627 | /* ----------------------------------------------------------------------- |
1629 | Main(); | 1628 | Main(); |
1630 | ----------------------------------------------------------------------- */ | 1629 | ----------------------------------------------------------------------- */ |
1631 | enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter) | 1630 | enum plugin_status plugin_start(const void* parameter) |
1632 | { | 1631 | { |
1633 | (void)parameter; | 1632 | (void)parameter; |
1634 | rb = api; | ||
1635 | 1633 | ||
1636 | /* now go ahead and have fun! */ | 1634 | /* now go ahead and have fun! */ |
1637 | 1635 | ||