Skip to content

Commit

Permalink
always set rendered_hidden false when hidden changes
Browse files Browse the repository at this point in the history
  • Loading branch information
FoamyGuy committed Jun 16, 2023
1 parent 074c134 commit 4bf4d14
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions shared-module/displayio/TileGrid.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,19 +88,17 @@ bool displayio_tilegrid_get_rendered_hidden(displayio_tilegrid_t *self) {

void common_hal_displayio_tilegrid_set_hidden(displayio_tilegrid_t *self, bool hidden) {
self->hidden = hidden;
self->rendered_hidden = false;
if (!hidden) {
self->full_change = true;
} else {
self->rendered_hidden = false;
}
}

void displayio_tilegrid_set_hidden_by_parent(displayio_tilegrid_t *self, bool hidden) {
self->hidden_by_parent = hidden;
self->rendered_hidden = false;
if (!hidden) {
self->full_change = true;
}else {
self->rendered_hidden = false;
}
}

Expand Down

0 comments on commit 4bf4d14

Please sign in to comment.