forked from len0rd/rockbox
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
This commit is contained in:
parent
be6fba009b
commit
b8176a6761
1 changed files with 2 additions and 7 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue