Skip to content

Commit 279d0d6

Browse files
authored
Merge pull request adafruit#5373 from lesamouraipourpre/fill-row
Update Display.fill_row() to accept all WriteableBuffers
2 parents e72c1fd + f5c0152 commit 279d0d6

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

shared-bindings/displayio/Display.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -467,9 +467,6 @@ STATIC mp_obj_t displayio_display_obj_fill_row(size_t n_args, const mp_obj_t *po
467467
mp_buffer_info_t bufinfo;
468468
mp_get_buffer_raise(result, &bufinfo, MP_BUFFER_WRITE);
469469

470-
if (bufinfo.typecode != BYTEARRAY_TYPECODE) {
471-
mp_raise_ValueError(translate("Buffer is not a bytearray."));
472-
}
473470
if (self->core.colorspace.depth != 16) {
474471
mp_raise_ValueError(translate("Display must have a 16 bit colorspace."));
475472
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy