summaryrefslogtreecommitdiff
path: root/shared-bindings/displayio
diff options
context:
space:
mode:
authorDave Astels <dastels@daveastels.com>2019-08-21 15:24:39 -0400
committerDave Astels <dastels@daveastels.com>2019-08-21 15:24:39 -0400
commit99a3da3b60d518ee3b590fb6c693c1e189e3bb30 (patch)
tree98f060ed4a291375d8a945b5cc4439971b1a53db /shared-bindings/displayio
parentd547d59cba9b23cea2d14a1bad84ea330d1b4c87 (diff)
Get rid of the last bits of array dependancy
Diffstat (limited to 'shared-bindings/displayio')
-rw-r--r--shared-bindings/displayio/Display.c4
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) {