summaryrefslogtreecommitdiff
path: root/shared-bindings
diff options
context:
space:
mode:
authorDave Astels <dastels@daveastels.com>2019-08-20 10:05:09 -0400
committerDave Astels <dastels@daveastels.com>2019-08-20 10:05:09 -0400
commit10bc0d29d11b1806bd5620850daf3c6708643125 (patch)
treea0efcbdd4b551ec0a9cf3c0a9186c0d6f89c3fb7 /shared-bindings
parent2b7897cdeddd2651996fc1c3afff060a42d1609b (diff)
Switch to positional parameters
Diffstat (limited to 'shared-bindings')
-rw-r--r--shared-bindings/displayio/Display.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/shared-bindings/displayio/Display.c b/shared-bindings/displayio/Display.c
index 4ae3687b3..4afc4ca74 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);