summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2006-02-18 00:13:44 +0000
committerJens Arnold <amiconn@rockbox.org>2006-02-18 00:13:44 +0000
commit35e05ca504c1423bca2f42db284bf26bdeeb1a77 (patch)
tree3f39a2d04d7f35fa41868124f1cb93e8b49b8f38 /apps
parentc0deb5371f01fe5706eedac2def6eb8ac2607da0 (diff)
downloadrockbox-35e05ca504c1423bca2f42db284bf26bdeeb1a77.tar.gz
rockbox-35e05ca504c1423bca2f42db284bf26bdeeb1a77.zip
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
Diffstat (limited to 'apps')
-rw-r--r--apps/plugin.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index 6060b4ad31..6f3585b130 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -413,6 +413,9 @@ int plugin_load(const char* plugin, void* parameter)
413#ifdef HAVE_LCD_BITMAP 413#ifdef HAVE_LCD_BITMAP
414 int xm, ym; 414 int xm, ym;
415#endif 415#endif
416#ifdef HAVE_REMOTE_LCD
417 int rxm, rym;
418#endif
416#ifdef HAVE_LCD_COLOR 419#ifdef HAVE_LCD_COLOR
417 fb_data* old_backdrop; 420 fb_data* old_backdrop;
418#endif 421#endif
@@ -495,12 +498,21 @@ int plugin_load(const char* plugin, void* parameter)
495 lcd_clear_display(); 498 lcd_clear_display();
496#endif 499#endif
497 500
501#ifdef HAVE_REMOTE_LCD
502 rxm = lcd_remote_getxmargin();
503 rym = lcd_remote_getymargin();
504 lcd_remote_setmargins(0, 0);
505 lcd_remote_clear_display();
506 lcd_remote_update();
507#endif
508
498 invalidate_icache(); 509 invalidate_icache();
499 510
500 rc = hdr->entry_point((struct plugin_api*) &rockbox_api, parameter); 511 rc = hdr->entry_point((struct plugin_api*) &rockbox_api, parameter);
501 /* explicitly casting the pointer here to avoid touching every plugin. */ 512 /* explicitly casting the pointer here to avoid touching every plugin. */
502 513
503 button_clear_queue(); 514 button_clear_queue();
515
504#ifdef HAVE_LCD_BITMAP 516#ifdef HAVE_LCD_BITMAP
505#if LCD_DEPTH > 1 517#if LCD_DEPTH > 1
506 lcd_set_drawinfo(DRMODE_SOLID, LCD_DEFAULT_FG, LCD_DEFAULT_BG); 518 lcd_set_drawinfo(DRMODE_SOLID, LCD_DEFAULT_FG, LCD_DEFAULT_BG);
@@ -515,7 +527,14 @@ int plugin_load(const char* plugin, void* parameter)
515 lcd_clear_display(); 527 lcd_clear_display();
516 lcd_update(); 528 lcd_update();
517#endif /* HAVE_LCD_BITMAP */ 529#endif /* HAVE_LCD_BITMAP */
518 530
531#ifdef HAVE_REMOTE_LCD
532 lcd_remote_set_drawmode(DRMODE_SOLID);
533 lcd_remote_setmargins(rxm, rym);
534 lcd_remote_clear_display();
535 lcd_remote_update();
536#endif
537
519 if (pfn_tsr_exit == NULL) 538 if (pfn_tsr_exit == NULL)
520 plugin_loaded = false; 539 plugin_loaded = false;
521 540