summaryrefslogtreecommitdiff
path: root/apps/plugins/test_resize.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/test_resize.c')
-rw-r--r--apps/plugins/test_resize.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/apps/plugins/test_resize.c b/apps/plugins/test_resize.c
index a6a183a54b..8ad8cdee38 100644
--- a/apps/plugins/test_resize.c
+++ b/apps/plugins/test_resize.c
@@ -33,7 +33,6 @@ PLUGIN_HEADER
33const struct button_mapping *plugin_contexts[] 33const struct button_mapping *plugin_contexts[]
34= {generic_actions, generic_directions}; 34= {generic_actions, generic_directions};
35 35
36#define NB_ACTION_CONTEXTS sizeof(plugin_contexts)/sizeof(plugin_contexts[0])
37 36
38/* Key assignement */ 37/* Key assignement */
39#define SIZE_INCREASE PLA_UP 38#define SIZE_INCREASE PLA_UP
@@ -46,8 +45,8 @@ const struct button_mapping *plugin_contexts[]
46#define WIDTH_DECREASE PLA_LEFT 45#define WIDTH_DECREASE PLA_LEFT
47#define WIDTH_DECREASE_REPEAT PLA_LEFT_REPEAT 46#define WIDTH_DECREASE_REPEAT PLA_LEFT_REPEAT
48 47
49#define BUTTON_QUIT PLA_QUIT 48#define BUTTON_QUIT PLA_CANCEL
50#define CHANGE_MODE PLA_MENU 49#define CHANGE_MODE PLA_SELECT
51 50
52#define MAX_OUTPUT_WIDTH LCD_WIDTH 51#define MAX_OUTPUT_WIDTH LCD_WIDTH
53#define MAX_OUTPUT_HEIGHT LCD_HEIGHT 52#define MAX_OUTPUT_HEIGHT LCD_HEIGHT
@@ -110,8 +109,8 @@ enum plugin_status plugin_start(const void* parameter)
110 output_bmp.height); 109 output_bmp.height);
111 110
112 rb->lcd_update(); 111 rb->lcd_update();
113 button = pluginlib_getaction(HZ, 112 button = pluginlib_getaction(HZ, plugin_contexts,
114 plugin_contexts, NB_ACTION_CONTEXTS); 113 ARRAYLEN(plugin_contexts));
115 switch (button) { 114 switch (button) {
116 case BUTTON_QUIT: 115 case BUTTON_QUIT:
117 return PLUGIN_OK; 116 return PLUGIN_OK;