diff options
| author | warriorofwire <3454741+WarriorOfWire@users.noreply.github.com> | 2020-05-10 15:36:23 -0700 |
|---|---|---|
| committer | warriorofwire <3454741+WarriorOfWire@users.noreply.github.com> | 2020-05-10 15:36:23 -0700 |
| commit | 58c8e00745064bd290fc9ec18a838960b27c1eea (patch) | |
| tree | c48c977580d74366d9fe8db24e726d3a62eec949 /shared-module/displayio/Group.c | |
| parent | 6660311a96f063e935e85a228f8b12e3a07ca95c (diff) | |
vectorio: clean up after group removal
VectorShape tells the Group to redraw whatever it left behind when it is removed now.
Diffstat (limited to 'shared-module/displayio/Group.c')
| -rw-r--r-- | shared-module/displayio/Group.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shared-module/displayio/Group.c b/shared-module/displayio/Group.c index d6df01f3d..15cf5b8e4 100644 --- a/shared-module/displayio/Group.c +++ b/shared-module/displayio/Group.c @@ -250,6 +250,8 @@ static void _remove_layer(displayio_group_t* self, size_t index) { bool rendered_last_frame = false; #if CIRCUITPY_VECTORIO if (MP_OBJ_IS_TYPE(layer, &vectorio_vector_shape_type)) { + bool has_dirty_area = vectorio_vector_shape_get_dirty_area(layer, &layer_area); + rendered_last_frame = has_dirty_area; vectorio_vector_shape_update_transform(layer, NULL); } else |
