Skip to content

Commit c4b57dc

Browse files
committed
fix shape.set_boundary()
1 parent 7e6825d commit c4b57dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shared-bindings/displayio/Shape.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ STATIC mp_obj_t displayio_shape_obj_set_boundary(size_t n_args, const mp_obj_t *
8282
(void)n_args;
8383
displayio_shape_t *self = MP_OBJ_TO_PTR(args[0]);
8484
mp_int_t y = mp_arg_validate_type_int(args[1], MP_QSTR_y);
85-
mp_int_t start_x = mp_arg_validate_type_int(args[1], MP_QSTR_start_x);
86-
mp_int_t end_x = mp_arg_validate_type_int(args[1], MP_QSTR_end_x);
85+
mp_int_t start_x = mp_arg_validate_type_int(args[2], MP_QSTR_start_x);
86+
mp_int_t end_x = mp_arg_validate_type_int(args[3], MP_QSTR_end_x);
8787
common_hal_displayio_shape_set_boundary(self, y, start_x, end_x);
8888

8989
return mp_const_none;

0 commit comments

Comments
 (0)