diff options
-rw-r--r-- | apps/plugin.c | 4 | ||||
-rw-r--r-- | apps/plugin.h | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index f70b648a49..912445ffe4 100644 --- a/apps/plugin.c +++ b/apps/plugin.c | |||
@@ -221,6 +221,9 @@ int plugin_load(char* plugin, void* parameter) | |||
221 | #else | 221 | #else |
222 | int fd; | 222 | int fd; |
223 | #endif | 223 | #endif |
224 | #ifdef HAVE_LCD_BITMAP | ||
225 | int xm,ym; | ||
226 | #endif | ||
224 | 227 | ||
225 | if (pfn_tsr_exit != NULL) /* if we have a resident old plugin: */ | 228 | if (pfn_tsr_exit != NULL) /* if we have a resident old plugin: */ |
226 | { | 229 | { |
@@ -229,7 +232,6 @@ int plugin_load(char* plugin, void* parameter) | |||
229 | } | 232 | } |
230 | 233 | ||
231 | #ifdef HAVE_LCD_BITMAP | 234 | #ifdef HAVE_LCD_BITMAP |
232 | int xm,ym; | ||
233 | lcd_clear_display(); | 235 | lcd_clear_display(); |
234 | xm = lcd_getxmargin(); | 236 | xm = lcd_getxmargin(); |
235 | ym = lcd_getymargin(); | 237 | ym = lcd_getymargin(); |
diff --git a/apps/plugin.h b/apps/plugin.h index 2da469f004..845db14cef 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -217,7 +217,7 @@ struct plugin_api { | |||
217 | #endif | 217 | #endif |
218 | void (*plugin_tsr)(void (*exit_callback)(void)); | 218 | void (*plugin_tsr)(void (*exit_callback)(void)); |
219 | int (*create_thread)(void* function, void* stack, int stack_size, char *name); | 219 | int (*create_thread)(void* function, void* stack, int stack_size, char *name); |
220 | void (*remove_tread)(void); | 220 | void (*remove_tread)(int threadnum); |
221 | void (*lcd_set_contrast)(int x); | 221 | void (*lcd_set_contrast)(int x); |
222 | 222 | ||
223 | /* playback control */ | 223 | /* playback control */ |