File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 32
32
33
33
#if CIRCUITPY_VECTORIO
34
34
#include "shared-bindings/vectorio/VectorShape.h"
35
+ #include "shared-bindings/vectorio/Circle.h"
36
+ #include "shared-bindings/vectorio/Rectangle.h"
37
+ #include "shared-bindings/vectorio/Polygon.h"
35
38
#endif
36
39
37
40
@@ -66,6 +69,26 @@ void common_hal_displayio_group_set_hidden(displayio_group_t *self, bool hidden)
66
69
displayio_group_set_hidden_by_parent (layer , hidden );
67
70
continue ;
68
71
}
72
+ #if CIRCUITPY_VECTORIO
73
+ layer = mp_obj_cast_to_native_base (
74
+ self -> members -> items [i ], & vectorio_circle_type );
75
+ if (layer != MP_OBJ_NULL ) {
76
+ common_hal_vectorio_vector_shape_set_dirty (common_hal_vectorio_circle_get_draw_protocol (layer ));
77
+ continue ;
78
+ }
79
+ layer = mp_obj_cast_to_native_base (
80
+ self -> members -> items [i ], & vectorio_rectangle_type );
81
+ if (layer != MP_OBJ_NULL ) {
82
+ common_hal_vectorio_vector_shape_set_dirty (common_hal_vectorio_rectangle_get_draw_protocol (layer ));
83
+ continue ;
84
+ }
85
+ layer = mp_obj_cast_to_native_base (
86
+ self -> members -> items [i ], & vectorio_polygon_type );
87
+ if (layer != MP_OBJ_NULL ) {
88
+ common_hal_vectorio_vector_shape_set_dirty (common_hal_vectorio_polygon_get_draw_protocol (layer ));
89
+ continue ;
90
+ }
91
+ #endif
69
92
}
70
93
}
71
94
You can’t perform that action at this time.
0 commit comments