plugins: properties: clear UI viewport at startup
rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]> Fri, 8 May 2026 23:31:10 -0400
| Newsgroups | gmane.comp.systems.archos.rockbox.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit 325a028af44593f6a2ad01ea11be93304191393d Author: Christian Soffke <[email protected]> Date: Fri May 8 17:00:15 2026 +0200 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 diff --git a/apps/plugins/properties.c b/apps/plugins/properties.c index 4eb727b7bb..fc251e4900 100644 --- a/apps/plugins/properties.c +++ b/apps/plugins/properties.c @@ -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 -- rockbox-cvs mailing list [email protected] https://lists.haxx.se/mailman/listinfo/rockbox-cvs