X-Git-Url: https://git.ayoreis.com/hackapet/Adafruit_Blinka_Displayio.git/blobdiff_plain/0d243252f0fb3a3e200df404884e3cc7d872ee13..8dc304ff4f82d37e493b9500e17fb13799dc200f:/displayio/_group.py?ds=inline diff --git a/displayio/_group.py b/displayio/_group.py index a23ae4e..903d721 100644 --- a/displayio/_group.py +++ b/displayio/_group.py @@ -52,6 +52,7 @@ class Group: self._layers = [] self._supported_types = (TileGrid, Group) self._in_group = False + self._item_removed = False self._absolute_transform = TransformStruct(0, 0, 1, 1, 1, False, False, False) self._set_scale(scale) # Set the scale via the setter @@ -166,6 +167,12 @@ class Group: if isinstance(layer, (Group, TileGrid)): layer._finish_refresh() # pylint: disable=protected-access + def _get_refresh_areas(self, areas: list[Area]) -> None: + for layer in self._layers: + if isinstance(layer, (Group, TileGrid)): + if not layer.hidden: + layer._get_refresh_areas(areas) # pylint: disable=protected-access + @property def hidden(self) -> bool: """True when the Group and all of it's layers are not visible. When False, the