summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2004-01-12 13:19:13 +0000
committerBjörn Stenberg <bjorn@haxx.se>2004-01-12 13:19:13 +0000
commit04519dbfa4908c1bbf8d00ee65397796e547fdc0 (patch)
tree7a41e0c98ee8ad14aceb815e4a31501224187605 /apps
parentbe01f63c83b85bf6416d35b570b5979c84aa7355 (diff)
downloadrockbox-04519dbfa4908c1bbf8d00ee65397796e547fdc0.tar.gz
rockbox-04519dbfa4908c1bbf8d00ee65397796e547fdc0.zip
Restore LCD margins after plugin exits
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4220 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-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