handle groups inside of groups with vectorio hidden

This commit is contained in:
foamyguy 2022-05-07 12:27:36 -05:00
parent c77dc3c828
commit 330e01d8e0
1 changed files with 20 additions and 0 deletions

View File

@ -115,6 +115,26 @@ void displayio_group_set_hidden_by_parent(displayio_group_t *self, bool hidden)
displayio_group_set_hidden_by_parent(layer, hidden);
continue;
}
#if CIRCUITPY_VECTORIO
layer = mp_obj_cast_to_native_base(
self->members->items[i], &vectorio_circle_type);
if (layer != MP_OBJ_NULL) {
common_hal_vectorio_vector_shape_set_dirty(common_hal_vectorio_circle_get_draw_protocol(layer));
continue;
}
layer = mp_obj_cast_to_native_base(
self->members->items[i], &vectorio_rectangle_type);
if (layer != MP_OBJ_NULL) {
common_hal_vectorio_vector_shape_set_dirty(common_hal_vectorio_rectangle_get_draw_protocol(layer));
continue;
}
layer = mp_obj_cast_to_native_base(
self->members->items[i], &vectorio_polygon_type);
if (layer != MP_OBJ_NULL) {
common_hal_vectorio_vector_shape_set_dirty(common_hal_vectorio_polygon_get_draw_protocol(layer));
continue;
}
#endif
}
}