From 10bc0d29d11b1806bd5620850daf3c6708643125 Mon Sep 17 00:00:00 2001 From: Dave Astels Date: Tue, 20 Aug 2019 10:05:09 -0400 Subject: [PATCH] Switch to positional parameters --- shared-bindings/displayio/Display.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shared-bindings/displayio/Display.c b/shared-bindings/displayio/Display.c index 4ae3687b3d..4afc4ca743 100644 --- a/shared-bindings/displayio/Display.c +++ b/shared-bindings/displayio/Display.c @@ -384,10 +384,10 @@ mp_obj_t array_subscr(mp_obj_t self_in, mp_obj_t index_in, mp_obj_t value); //| :param int y: The top edge of the area //| :param bytearray buffer: The buffer in which to place the pixel data STATIC mp_obj_t displayio_display_obj_fill_row(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) { - enum { ARG_y, ARG_buffer }; + enum { ARG_y, ARG_buffer }; static const mp_arg_t allowed_args[] = { - { MP_QSTR_y, MP_ARG_INT | MP_ARG_KW_ONLY, {.u_int = -1} }, - { MP_QSTR_buffer, MP_ARG_OBJ | MP_ARG_KW_ONLY, {} }, + { MP_QSTR_y, MP_ARG_INT | MP_ARG_REQUIRED, {.u_int = -1} }, + { MP_QSTR_buffer, MP_ARG_OBJ | MP_ARG_REQUIRED, {} }, }; mp_arg_val_t args[MP_ARRAY_SIZE(allowed_args)]; mp_arg_parse_all(n_args - 1, pos_args + 1, kw_args, MP_ARRAY_SIZE(allowed_args), allowed_args, args);