Skip to content

Commit

Permalink
PicoVector: Fix bug in Polygon.regular.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadgetoid committed Dec 5, 2024
1 parent 762c5cb commit d0903ca
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions micropython/modules/picovector/picovector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ mp_obj_t POLYGON_rectangle(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw
}

mp_obj_t POLYGON_regular(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {
enum { ARG_self, ARG_x, ARG_y, ARG_sides, ARG_radius, ARG_stroke };
enum { ARG_self, ARG_x, ARG_y, ARG_radius, ARG_sides, ARG_stroke };
static const mp_arg_t allowed_args[] = {
{ MP_QSTR_, MP_ARG_REQUIRED | MP_ARG_OBJ },
{ MP_QSTR_x, MP_ARG_REQUIRED | MP_ARG_OBJ },
Expand All @@ -274,7 +274,6 @@ mp_obj_t POLYGON_regular(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_a

_POLY_obj_t *self = MP_OBJ_TO_PTR2(args[ARG_self].u_obj, _POLY_obj_t);


picovector_point_type x = mp_picovector_get_point_type(args[ARG_x].u_obj);
picovector_point_type y = mp_picovector_get_point_type(args[ARG_y].u_obj);
picovector_point_type r = mp_picovector_get_point_type(args[ARG_radius].u_obj);
Expand Down

0 comments on commit d0903ca

Please sign in to comment.