forked from len0rd/rockbox
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
This commit is contained in:
parent
f4e7759625
commit
d8dda93268
1 changed files with 6 additions and 3 deletions
|
|
@ -591,6 +591,7 @@ int plugin_load(const char* plugin, void* parameter)
|
||||||
#ifdef HAVE_LCD_BITMAP
|
#ifdef HAVE_LCD_BITMAP
|
||||||
#if LCD_DEPTH > 1
|
#if LCD_DEPTH > 1
|
||||||
#ifdef HAVE_LCD_COLOR
|
#ifdef HAVE_LCD_COLOR
|
||||||
|
lcd_set_backdrop(old_backdrop);
|
||||||
lcd_set_drawinfo(DRMODE_SOLID, global_settings.fg_color,
|
lcd_set_drawinfo(DRMODE_SOLID, global_settings.fg_color,
|
||||||
global_settings.bg_color);
|
global_settings.bg_color);
|
||||||
#else
|
#else
|
||||||
|
|
@ -601,15 +602,17 @@ int plugin_load(const char* plugin, void* parameter)
|
||||||
#endif /* LCD_DEPTH */
|
#endif /* LCD_DEPTH */
|
||||||
/* restore margins */
|
/* restore margins */
|
||||||
lcd_setmargins(xm,ym);
|
lcd_setmargins(xm,ym);
|
||||||
#ifdef HAVE_LCD_COLOR
|
|
||||||
lcd_set_backdrop(old_backdrop);
|
|
||||||
#endif
|
|
||||||
lcd_clear_display();
|
lcd_clear_display();
|
||||||
lcd_update();
|
lcd_update();
|
||||||
#endif /* HAVE_LCD_BITMAP */
|
#endif /* HAVE_LCD_BITMAP */
|
||||||
|
|
||||||
#ifdef HAVE_REMOTE_LCD
|
#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);
|
lcd_remote_set_drawmode(DRMODE_SOLID);
|
||||||
|
#endif
|
||||||
lcd_remote_setmargins(rxm, rym);
|
lcd_remote_setmargins(rxm, rym);
|
||||||
lcd_remote_clear_display();
|
lcd_remote_clear_display();
|
||||||
lcd_remote_update();
|
lcd_remote_update();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue