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 /apps/gui/usb_screen.c | |
parent | be6fba009bbf9ed908e90bd491b374e66c738541 (diff) | |
download | rockbox-b8176a6761ff0e6f681c3a1ffb6351b40b24cd20.tar.gz rockbox-b8176a6761ff0e6f681c3a1ffb6351b40b24cd20.zip |
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
Diffstat (limited to 'apps/gui/usb_screen.c')
-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, | |||
154 | viewport_set_defaults(parent, screen->screen_type); | 154 | viewport_set_defaults(parent, screen->screen_type); |
155 | disable = (parent->width < logo_width || parent->height < logo_height); | 155 | disable = (parent->width < logo_width || parent->height < logo_height); |
156 | viewportmanager_theme_enable(screen->screen_type, !disable, parent); | 156 | viewportmanager_theme_enable(screen->screen_type, !disable, parent); |
157 | screen->clear_display(); | ||
158 | screen->stop_scroll(); | ||
157 | 159 | ||
158 | *logo = *parent; | 160 | *logo = *parent; |
159 | logo->x = parent->x + parent->width - logo_width; | 161 | logo->x = parent->x + parent->width - logo_width; |
@@ -183,13 +185,6 @@ static void usb_screen_fix_viewports(struct screen *screen, | |||
183 | static void usb_screens_draw(struct usb_screen_vps_t *usb_screen_vps_ar) | 185 | static void usb_screens_draw(struct usb_screen_vps_t *usb_screen_vps_ar) |
184 | { | 186 | { |
185 | int i; | 187 | int i; |
186 | |||
187 | /* Clear main and remote screens to remove scrolling line artifacts */ | ||
188 | lcd_clear_display(); | ||
189 | #ifdef HAVE_LCD_REMOTE | ||
190 | lcd_remote_clear_display(); | ||
191 | #endif | ||
192 | |||
193 | FOR_NB_SCREENS(i) | 188 | FOR_NB_SCREENS(i) |
194 | { | 189 | { |
195 | struct screen *screen = &screens[i]; | 190 | struct screen *screen = &screens[i]; |