summaryrefslogtreecommitdiff
path: root/apps/plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugin.c')
-rw-r--r--apps/plugin.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index 48f9dac487..4a50c2b3a3 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -194,9 +194,7 @@ static const struct plugin_api rockbox_api = {
194 lcd_putsf, 194 lcd_putsf,
195 lcd_puts_scroll, 195 lcd_puts_scroll,
196 lcd_scroll_stop, 196 lcd_scroll_stop,
197 &lcd_framebuffer,
198 lcd_set_viewport, 197 lcd_set_viewport,
199 lcd_set_framebuffer,
200 lcd_bmp_part, 198 lcd_bmp_part,
201 lcd_update_rect, 199 lcd_update_rect,
202 lcd_set_drawmode, 200 lcd_set_drawmode,
@@ -281,7 +279,6 @@ static const struct plugin_api rockbox_api = {
281 lcd_remote_mono_bitmap_part, 279 lcd_remote_mono_bitmap_part,
282 lcd_remote_mono_bitmap, 280 lcd_remote_mono_bitmap,
283 lcd_remote_putsxy, 281 lcd_remote_putsxy,
284 &lcd_remote_framebuffer;
285 lcd_remote_update, 282 lcd_remote_update,
286 lcd_remote_update_rect, 283 lcd_remote_update_rect,
287#if (LCD_REMOTE_DEPTH > 1) 284#if (LCD_REMOTE_DEPTH > 1)
@@ -303,6 +300,7 @@ static const struct plugin_api rockbox_api = {
303 viewportmanager_theme_enable, 300 viewportmanager_theme_enable,
304 viewportmanager_theme_undo, 301 viewportmanager_theme_undo,
305 viewport_set_fullscreen, 302 viewport_set_fullscreen,
303 viewport_set_buffer,
306 304
307#ifdef HAVE_BACKLIGHT 305#ifdef HAVE_BACKLIGHT
308 /* lcd backlight */ 306 /* lcd backlight */
@@ -869,11 +867,12 @@ int plugin_load(const char* plugin, const void* parameter)
869#endif 867#endif
870 868
871 *(p_hdr->api) = &rockbox_api; 869 *(p_hdr->api) = &rockbox_api;
872 870 lcd_set_viewport(NULL);
873 lcd_clear_display(); 871 lcd_clear_display();
874 lcd_update(); 872 lcd_update();
875 873
876#ifdef HAVE_REMOTE_LCD 874#ifdef HAVE_REMOTE_LCD
875 lcd_remote_set_viewport(NULL);
877 lcd_remote_clear_display(); 876 lcd_remote_clear_display();
878 lcd_remote_update(); 877 lcd_remote_update();
879#endif 878#endif
@@ -914,7 +913,8 @@ int plugin_load(const char* plugin, const void* parameter)
914#ifdef HAVE_TOUCHSCREEN 913#ifdef HAVE_TOUCHSCREEN
915 touchscreen_set_mode(global_settings.touch_mode); 914 touchscreen_set_mode(global_settings.touch_mode);
916#endif 915#endif
917 916 /* restore default vp */
917 lcd_set_viewport(NULL);
918 screen_helper_setfont(FONT_UI); 918 screen_helper_setfont(FONT_UI);
919#if LCD_DEPTH > 1 919#if LCD_DEPTH > 1
920#ifdef HAVE_LCD_COLOR 920#ifdef HAVE_LCD_COLOR
@@ -928,6 +928,8 @@ int plugin_load(const char* plugin, const void* parameter)
928#endif /* LCD_DEPTH */ 928#endif /* LCD_DEPTH */
929 929
930#ifdef HAVE_REMOTE_LCD 930#ifdef HAVE_REMOTE_LCD
931 lcd_remote_set_viewport(NULL);
932
931#if LCD_REMOTE_DEPTH > 1 933#if LCD_REMOTE_DEPTH > 1
932 lcd_remote_set_drawinfo(DRMODE_SOLID, LCD_REMOTE_DEFAULT_FG, 934 lcd_remote_set_drawinfo(DRMODE_SOLID, LCD_REMOTE_DEFAULT_FG,
933 LCD_REMOTE_DEFAULT_BG); 935 LCD_REMOTE_DEFAULT_BG);