diff options
| author | warriorofwire <3454741+WarriorOfWire@users.noreply.github.com> | 2020-05-11 21:21:05 -0700 |
|---|---|---|
| committer | warriorofwire <3454741+WarriorOfWire@users.noreply.github.com> | 2020-05-11 21:21:05 -0700 |
| commit | 78444a1018f5a9dbac6e2fac1b7385970accedbc (patch) | |
| tree | 53b7a0b3b1fa8d0ebfbd86c474b5060604f2ae68 /shared-bindings/vectorio/VectorShape.c | |
| parent | 040beb0577f4360f34953db16c285a9af1bea6b8 (diff) | |
fix VectorShape on_dirty callback registration being set for the wrong type
Diffstat (limited to 'shared-bindings/vectorio/VectorShape.c')
| -rw-r--r-- | shared-bindings/vectorio/VectorShape.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-bindings/vectorio/VectorShape.c b/shared-bindings/vectorio/VectorShape.c index 02a42536d..4b39ec996 100644 --- a/shared-bindings/vectorio/VectorShape.c +++ b/shared-bindings/vectorio/VectorShape.c @@ -85,8 +85,8 @@ STATIC mp_obj_t vectorio_vector_shape_make_new(const mp_obj_type_t *type, size_t if (MP_OBJ_IS_TYPE(shape, &vectorio_polygon_type)) { common_hal_vectorio_polygon_set_on_dirty(self->ishape.shape, on_dirty); } else if (MP_OBJ_IS_TYPE(shape, &vectorio_rectangle_type)) { - common_hal_vectorio_circle_set_on_dirty(self->ishape.shape, on_dirty); } else if (MP_OBJ_IS_TYPE(shape, &vectorio_circle_type)) { + common_hal_vectorio_circle_set_on_dirty(self->ishape.shape, on_dirty); } else { mp_raise_TypeError_varg(translate("unsupported %q type"), MP_QSTR_shape); } |
