summaryrefslogtreecommitdiff
path: root/apps/plugins/calculator.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/calculator.c')
-rw-r--r--apps/plugins/calculator.c6
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
345static struct ts_raster calc_raster = { X_0_POS, Y_1_POS, BUTTON_COLS*REC_WIDTH, BUTTON_ROWS*REC_HEIGHT, REC_WIDTH, REC_HEIGHT }; 345static 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
348static const struct plugin_api* rb; 348MEM_FUNCTION_WRAPPERS;
349MEM_FUNCTION_WRAPPERS(rb);
350 349
351enum { 350enum {
352 basicButtons, 351 basicButtons,
@@ -1628,10 +1627,9 @@ int handleButton(int button){
1628/* ----------------------------------------------------------------------- 1627/* -----------------------------------------------------------------------
1629Main(); 1628Main();
1630----------------------------------------------------------------------- */ 1629----------------------------------------------------------------------- */
1631enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter) 1630enum 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