summaryrefslogtreecommitdiff
path: root/apps/plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugin.c')
-rw-r--r--apps/plugin.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index b31988e9b4..e91cba0512 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -177,10 +177,15 @@ int plugin_load(char* plugin, void* parameter)
177 int fd; 177 int fd;
178#endif 178#endif
179 179
180 lcd_clear_display();
181#ifdef HAVE_LCD_BITMAP 180#ifdef HAVE_LCD_BITMAP
181 int xm,ym;
182 lcd_clear_display();
183 xm = lcd_getxmargin();
184 ym = lcd_getymargin();
182 lcd_setmargins(0,0); 185 lcd_setmargins(0,0);
183 lcd_update(); 186 lcd_update();
187#else
188 lcd_clear_display();
184#endif 189#endif
185#ifdef SIMULATOR 190#ifdef SIMULATOR
186#ifdef WIN32 191#ifdef WIN32
@@ -257,7 +262,12 @@ int plugin_load(char* plugin, void* parameter)
257#ifdef SIMULATOR 262#ifdef SIMULATOR
258 dlclose(pd); 263 dlclose(pd);
259#endif 264#endif
260 265
266#ifdef HAVE_LCD_BITMAP
267 /* restore margins */
268 lcd_setmargins(xm,ym);
269#endif
270
261 return PLUGIN_OK; 271 return PLUGIN_OK;
262} 272}
263 273