summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/plugin.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index 422749b533..2517a7183f 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -812,10 +812,6 @@ int plugin_load(const char* plugin, const void* parameter)
812 struct plugin_header *p_hdr; 812 struct plugin_header *p_hdr;
813 struct lc_header *hdr; 813 struct lc_header *hdr;
814 814
815#if LCD_DEPTH > 1
816 fb_data* old_backdrop;
817#endif
818
819 if (current_plugin_handle && pfn_tsr_exit) 815 if (current_plugin_handle && pfn_tsr_exit)
820 { /* if we have a resident old plugin and a callback */ 816 { /* if we have a resident old plugin and a callback */
821 if (pfn_tsr_exit(!strcmp(current_plugin, plugin)) == false ) 817 if (pfn_tsr_exit(!strcmp(current_plugin, plugin)) == false )
@@ -869,9 +865,6 @@ int plugin_load(const char* plugin, const void* parameter)
869 865
870 *(p_hdr->api) = &rockbox_api; 866 *(p_hdr->api) = &rockbox_api;
871 867
872#if defined HAVE_LCD_BITMAP && LCD_DEPTH > 1
873 old_backdrop = lcd_get_backdrop();
874#endif
875 lcd_clear_display(); 868 lcd_clear_display();
876 lcd_update(); 869 lcd_update();
877 870
@@ -914,7 +907,6 @@ int plugin_load(const char* plugin, const void* parameter)
914#ifdef HAVE_LCD_BITMAP 907#ifdef HAVE_LCD_BITMAP
915 lcd_setfont(FONT_UI); 908 lcd_setfont(FONT_UI);
916#if LCD_DEPTH > 1 909#if LCD_DEPTH > 1
917 lcd_set_backdrop(old_backdrop);
918#ifdef HAVE_LCD_COLOR 910#ifdef HAVE_LCD_COLOR
919 lcd_set_drawinfo(DRMODE_SOLID, global_settings.fg_color, 911 lcd_set_drawinfo(DRMODE_SOLID, global_settings.fg_color,
920 global_settings.bg_color); 912 global_settings.bg_color);
@@ -942,7 +934,7 @@ int plugin_load(const char* plugin, const void* parameter)
942#endif 934#endif
943 935
944 FOR_NB_SCREENS(i) 936 FOR_NB_SCREENS(i)
945 viewportmanager_theme_undo(i, false); 937 viewportmanager_theme_undo(i, true);
946 938
947#ifdef HAVE_PLUGIN_CHECK_OPEN_CLOSE 939#ifdef HAVE_PLUGIN_CHECK_OPEN_CLOSE
948 if(open_files != 0 && !current_plugin_handle) 940 if(open_files != 0 && !current_plugin_handle)