1
0
Fork 0
forked from len0rd/rockbox

Restore LCD margins after plugin exits

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4220 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2004-01-12 13:19:13 +00:00
parent be01f63c83
commit 04519dbfa4

View file

@ -177,10 +177,15 @@ int plugin_load(char* plugin, void* parameter)
int fd;
#endif
lcd_clear_display();
#ifdef HAVE_LCD_BITMAP
int xm,ym;
lcd_clear_display();
xm = lcd_getxmargin();
ym = lcd_getymargin();
lcd_setmargins(0,0);
lcd_update();
#else
lcd_clear_display();
#endif
#ifdef SIMULATOR
#ifdef WIN32
@ -257,7 +262,12 @@ int plugin_load(char* plugin, void* parameter)
#ifdef SIMULATOR
dlclose(pd);
#endif
#ifdef HAVE_LCD_BITMAP
/* restore margins */
lcd_setmargins(xm,ym);
#endif
return PLUGIN_OK;
}