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 /apps | |
parent | f4e775962548e8fe581eb2b370fc73adaf252385 (diff) | |
download | rockbox-d8dda93268ee39e320b4e5ba47bb833467f02678.tar.gz rockbox-d8dda93268ee39e320b4e5ba47bb833467f02678.zip |
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
Diffstat (limited to 'apps')
-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 a908016703..876f82d774 100644 --- a/apps/plugin.c +++ b/apps/plugin.c | |||
@@ -591,6 +591,7 @@ int plugin_load(const char* plugin, void* parameter) | |||
591 | #ifdef HAVE_LCD_BITMAP | 591 | #ifdef HAVE_LCD_BITMAP |
592 | #if LCD_DEPTH > 1 | 592 | #if LCD_DEPTH > 1 |
593 | #ifdef HAVE_LCD_COLOR | 593 | #ifdef HAVE_LCD_COLOR |
594 | lcd_set_backdrop(old_backdrop); | ||
594 | lcd_set_drawinfo(DRMODE_SOLID, global_settings.fg_color, | 595 | lcd_set_drawinfo(DRMODE_SOLID, global_settings.fg_color, |
595 | global_settings.bg_color); | 596 | global_settings.bg_color); |
596 | #else | 597 | #else |
@@ -601,15 +602,17 @@ int plugin_load(const char* plugin, void* parameter) | |||
601 | #endif /* LCD_DEPTH */ | 602 | #endif /* LCD_DEPTH */ |
602 | /* restore margins */ | 603 | /* restore margins */ |
603 | lcd_setmargins(xm,ym); | 604 | lcd_setmargins(xm,ym); |
604 | #ifdef HAVE_LCD_COLOR | ||
605 | lcd_set_backdrop(old_backdrop); | ||
606 | #endif | ||
607 | lcd_clear_display(); | 605 | lcd_clear_display(); |
608 | lcd_update(); | 606 | lcd_update(); |
609 | #endif /* HAVE_LCD_BITMAP */ | 607 | #endif /* HAVE_LCD_BITMAP */ |
610 | 608 | ||
611 | #ifdef HAVE_REMOTE_LCD | 609 | #ifdef HAVE_REMOTE_LCD |
610 | #if LCD_REMOTE_DEPTH > 1 | ||
611 | lcd_remote_set_drawinfo(DRMODE_SOLID, LCD_REMOTE_DEFAULT_FG, | ||
612 | LCD_REMOTE_DEFAULT_BG); | ||
613 | #else | ||
612 | lcd_remote_set_drawmode(DRMODE_SOLID); | 614 | lcd_remote_set_drawmode(DRMODE_SOLID); |
615 | #endif | ||
613 | lcd_remote_setmargins(rxm, rym); | 616 | lcd_remote_setmargins(rxm, rym); |
614 | lcd_remote_clear_display(); | 617 | lcd_remote_clear_display(); |
615 | lcd_remote_update(); | 618 | lcd_remote_update(); |