Merge pull request #8114 from FoamyGuy/displayio_shape_fix

fix shape.set_boundary()
This commit is contained in:
Jeff Epler 2023-06-27 06:27:10 -05:00 committed by GitHub
commit 324ecc2611
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -82,8 +82,8 @@ STATIC mp_obj_t displayio_shape_obj_set_boundary(size_t n_args, const mp_obj_t *
(void)n_args; (void)n_args;
displayio_shape_t *self = MP_OBJ_TO_PTR(args[0]); displayio_shape_t *self = MP_OBJ_TO_PTR(args[0]);
mp_int_t y = mp_arg_validate_type_int(args[1], MP_QSTR_y); mp_int_t y = mp_arg_validate_type_int(args[1], MP_QSTR_y);
mp_int_t start_x = mp_arg_validate_type_int(args[1], MP_QSTR_start_x); mp_int_t start_x = mp_arg_validate_type_int(args[2], MP_QSTR_start_x);
mp_int_t end_x = mp_arg_validate_type_int(args[1], MP_QSTR_end_x); mp_int_t end_x = mp_arg_validate_type_int(args[3], MP_QSTR_end_x);
common_hal_displayio_shape_set_boundary(self, y, start_x, end_x); common_hal_displayio_shape_set_boundary(self, y, start_x, end_x);
return mp_const_none; return mp_const_none;