mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-05-12 11:43:16 -04:00
plugins: properties: clear UI viewport at startup
Otherwise, with themes that adjust the viewport for the current activity, the background behind the progress bar may look glitchy while scanning items, until the list is displayed Change-Id: I27a207b37c3209eae9bc61e1fd0862fb5872be57
This commit is contained in:
parent
ae871d25a9
commit
325a028af4
1 changed files with 9 additions and 0 deletions
|
|
@ -329,6 +329,15 @@ enum plugin_status plugin_start(const void* parameter)
|
|||
{
|
||||
static struct dir_stats stats;
|
||||
const char *file = parameter;
|
||||
static struct viewport ui_vp;
|
||||
|
||||
/* clear UI vp */
|
||||
struct screen* display = rb->screens[SCREEN_MAIN];
|
||||
rb->viewport_set_defaults(&ui_vp, SCREEN_MAIN);
|
||||
struct viewport *last_vp = display->set_viewport(&ui_vp);
|
||||
display->clear_viewport();
|
||||
display->set_viewport(last_vp);
|
||||
|
||||
#ifdef HAVE_TOUCHSCREEN
|
||||
rb->touchscreen_set_mode(rb->global_settings->touch_mode);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue