@@ -691,7 +691,7 @@ MP_DEFINE_CONST_FUN_OBJ_KW(bitmaptools_draw_polygon_obj, 0, bitmaptools_obj_draw
691691//| available in the destination bitmap.
692692//|
693693//| If x1 or y1 are not specified, they are taken as 0. If x2 or y2
694- //| are not specified, or are given as -1 , they are taken as the width
694+ //| are not specified, or are given as None , they are taken as the width
695695//| and height of the image.
696696//|
697697//| The coordinates affected by the blit are ``x1 <= x < x2`` and ``y1 <= y < y2``.
@@ -719,7 +719,7 @@ static mp_obj_t bitmaptools_arrayblit(size_t n_args, const mp_obj_t *pos_args, m
719719 static const mp_arg_t allowed_args [] = {
720720 { MP_QSTR_bitmap , MP_ARG_REQUIRED | MP_ARG_OBJ , {.u_obj = MP_OBJ_NULL } },
721721 { MP_QSTR_data , MP_ARG_REQUIRED | MP_ARG_OBJ , {.u_obj = MP_OBJ_NULL } },
722- ALLOWED_ARGS_X1_Y1_X2_Y2 (0 , MP_ARG_REQUIRED ),
722+ ALLOWED_ARGS_X1_Y1_X2_Y2 (0 , 0 ),
723723 { MP_QSTR_skip_index , MP_ARG_OBJ , {.u_obj = mp_const_none } },
724724 };
725725 mp_arg_val_t args [MP_ARRAY_SIZE (allowed_args )];
0 commit comments