Skip to content

Commit

Permalink
try to fix multi-display reset
Browse files Browse the repository at this point in the history
  • Loading branch information
FoamyGuy committed Apr 5, 2023
1 parent 60e12c5 commit 8bf94d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion shared-module/displayio/Display.c
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,9 @@ void reset_display(displayio_display_obj_t *self) {
circuitpython_splash.x = 0; // reset position in case someone moved it.
circuitpython_splash.y = 0;
supervisor_start_terminal(self->core.width, self->core.height);
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);
}
}

void displayio_display_collect_ptrs(displayio_display_obj_t *self) {
Expand Down

0 comments on commit 8bf94d0

Please sign in to comment.