diff options
| -rw-r--r-- | shared-bindings/displayio/Display.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shared-bindings/displayio/Display.c b/shared-bindings/displayio/Display.c index 92af86929..0c48b0cc5 100644 --- a/shared-bindings/displayio/Display.c +++ b/shared-bindings/displayio/Display.c @@ -389,12 +389,12 @@ STATIC mp_obj_t displayio_display_obj_fill_row(size_t n_args, const mp_obj_t *po mp_arg_parse_all(n_args - 1, pos_args + 1, kw_args, MP_ARRAY_SIZE(allowed_args), allowed_args, args); displayio_display_obj_t *self = native_display(pos_args[0]); mp_int_t y = args[ARG_y].u_int; - mp_obj_array_t *result = args[ARG_buffer].u_obj; + mp_obj_t *result = args[ARG_buffer].u_obj; mp_buffer_info_t bufinfo; mp_get_buffer_raise(result, &bufinfo, MP_BUFFER_WRITE); - if (result->typecode != BYTEARRAY_TYPECODE) { + if (bufinfo.typecode != BYTEARRAY_TYPECODE) { mp_raise_ValueError(translate("Buffer is not a bytearray.")); } if (self->colorspace.depth != 16) { |
