diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2006-10-09 07:00:50 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2006-10-09 07:00:50 +0000 |
| commit | d8dda93268ee39e320b4e5ba47bb833467f02678 (patch) | |
| tree | dc829717f93d01faaf71b87ba6c48ca1dc657d81 | |
| parent | f4e775962548e8fe581eb2b370fc73adaf252385 (diff) | |
| download | rockbox-d8dda93268ee39e320b4e5ba47bb833467f02678.zip rockbox-d8dda93268ee39e320b4e5ba47bb833467f02678.tar.gz rockbox-d8dda93268ee39e320b4e5ba47bb833467f02678.tar.bz2 rockbox-d8dda93268ee39e320b4e5ba47bb833467f02678.tar.xz | |
Plugin loader: * Fix drawinfo reset after plugin return for greyscale remote LCDs. * Slight cleanup.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11155 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | apps/plugin.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index a908016..876f82d 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -591,6 +591,7 @@ int plugin_load(const char* plugin, void* parameter) #ifdef HAVE_LCD_BITMAP #if LCD_DEPTH > 1 #ifdef HAVE_LCD_COLOR + lcd_set_backdrop(old_backdrop); lcd_set_drawinfo(DRMODE_SOLID, global_settings.fg_color, global_settings.bg_color); #else @@ -601,15 +602,17 @@ int plugin_load(const char* plugin, void* parameter) #endif /* LCD_DEPTH */ /* restore margins */ lcd_setmargins(xm,ym); -#ifdef HAVE_LCD_COLOR - lcd_set_backdrop(old_backdrop); -#endif lcd_clear_display(); lcd_update(); #endif /* HAVE_LCD_BITMAP */ #ifdef HAVE_REMOTE_LCD +#if LCD_REMOTE_DEPTH > 1 + lcd_remote_set_drawinfo(DRMODE_SOLID, LCD_REMOTE_DEFAULT_FG, + LCD_REMOTE_DEFAULT_BG); +#else lcd_remote_set_drawmode(DRMODE_SOLID); +#endif lcd_remote_setmargins(rxm, rym); lcd_remote_clear_display(); lcd_remote_update(); |