diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2010-05-20 15:21:10 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2010-05-20 15:21:10 +0000 |
commit | b8176a6761ff0e6f681c3a1ffb6351b40b24cd20 (patch) | |
tree | 644fd8232d2a6f21836273d00bcef8dc2423b26d | |
parent | be6fba009bbf9ed908e90bd491b374e66c738541 (diff) |
redo r25569 so the screen is only cleared once instead of every update (which is ~2Hz
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26196 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/gui/usb_screen.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/apps/gui/usb_screen.c b/apps/gui/usb_screen.c index 64a4e38678..a6fd4a70a6 100644 --- a/apps/gui/usb_screen.c +++ b/apps/gui/usb_screen.c @@ -154,6 +154,8 @@ static void usb_screen_fix_viewports(struct screen *screen, viewport_set_defaults(parent, screen->screen_type); disable = (parent->width < logo_width || parent->height < logo_height); viewportmanager_theme_enable(screen->screen_type, !disable, parent); + screen->clear_display(); + screen->stop_scroll(); *logo = *parent; logo->x = parent->x + parent->width - logo_width; @@ -183,13 +185,6 @@ static void usb_screen_fix_viewports(struct screen *screen, static void usb_screens_draw(struct usb_screen_vps_t *usb_screen_vps_ar) { int i; - - /* Clear main and remote screens to remove scrolling line artifacts */ - lcd_clear_display(); -#ifdef HAVE_LCD_REMOTE - lcd_remote_clear_display(); -#endif - FOR_NB_SCREENS(i) { struct screen *screen = &screens[i]; |