Plugin loader: Handle the remote LCD the same way as the main LCD (clear, set parameters).

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8724 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2006-02-18 00:13:44 +00:00
parent c0deb5371f
commit 35e05ca504

View file

@ -413,6 +413,9 @@ int plugin_load(const char* plugin, void* parameter)
#ifdef HAVE_LCD_BITMAP #ifdef HAVE_LCD_BITMAP
int xm, ym; int xm, ym;
#endif #endif
#ifdef HAVE_REMOTE_LCD
int rxm, rym;
#endif
#ifdef HAVE_LCD_COLOR #ifdef HAVE_LCD_COLOR
fb_data* old_backdrop; fb_data* old_backdrop;
#endif #endif
@ -495,12 +498,21 @@ int plugin_load(const char* plugin, void* parameter)
lcd_clear_display(); lcd_clear_display();
#endif #endif
#ifdef HAVE_REMOTE_LCD
rxm = lcd_remote_getxmargin();
rym = lcd_remote_getymargin();
lcd_remote_setmargins(0, 0);
lcd_remote_clear_display();
lcd_remote_update();
#endif
invalidate_icache(); invalidate_icache();
rc = hdr->entry_point((struct plugin_api*) &rockbox_api, parameter); rc = hdr->entry_point((struct plugin_api*) &rockbox_api, parameter);
/* explicitly casting the pointer here to avoid touching every plugin. */ /* explicitly casting the pointer here to avoid touching every plugin. */
button_clear_queue(); button_clear_queue();
#ifdef HAVE_LCD_BITMAP #ifdef HAVE_LCD_BITMAP
#if LCD_DEPTH > 1 #if LCD_DEPTH > 1
lcd_set_drawinfo(DRMODE_SOLID, LCD_DEFAULT_FG, LCD_DEFAULT_BG); lcd_set_drawinfo(DRMODE_SOLID, LCD_DEFAULT_FG, LCD_DEFAULT_BG);
@ -516,6 +528,13 @@ int plugin_load(const char* plugin, void* parameter)
lcd_update(); lcd_update();
#endif /* HAVE_LCD_BITMAP */ #endif /* HAVE_LCD_BITMAP */
#ifdef HAVE_REMOTE_LCD
lcd_remote_set_drawmode(DRMODE_SOLID);
lcd_remote_setmargins(rxm, rym);
lcd_remote_clear_display();
lcd_remote_update();
#endif
if (pfn_tsr_exit == NULL) if (pfn_tsr_exit == NULL)
plugin_loaded = false; plugin_loaded = false;