only add circuitpython_splash to display if it's not already in another group

This commit is contained in:
foamyguy 2023-04-03 15:43:29 -05:00
parent cc0eeb430a
commit 60e12c5c1d
1 changed files with 3 additions and 1 deletions

View File

@ -136,7 +136,9 @@ void common_hal_displayio_display_construct(displayio_display_obj_t *self,
// Set the group after initialization otherwise we may send pixels while we delay in
// initialization.
common_hal_displayio_display_set_root_group(self, &circuitpython_splash);
if (!circuitpython_splash.in_group) {
common_hal_displayio_display_set_root_group(self, &circuitpython_splash);
}
common_hal_displayio_display_set_auto_refresh(self, auto_refresh);
}