diff options
| author | Scott Shawcroft <scott@adafruit.com> | 2020-05-21 08:52:39 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-21 08:52:39 -0700 |
| commit | 3bb6a32a2078452d3278b185a15721391d78a9db (patch) | |
| tree | 4c8bead5f3228d8f2afe00f42cf1041825d67783 /shared-bindings | |
| parent | a43876ad1eb061350160ff5cc9f778cc9445c233 (diff) | |
| parent | edc5d8938e0360a61fcea03344d3c525d836048d (diff) | |
Merge branch 'master' into esp32s2_digitalio
Diffstat (limited to 'shared-bindings')
| -rw-r--r-- | shared-bindings/_pixelbuf/PixelBuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-bindings/_pixelbuf/PixelBuf.c b/shared-bindings/_pixelbuf/PixelBuf.c index 71a91d707..d8f1810db 100644 --- a/shared-bindings/_pixelbuf/PixelBuf.c +++ b/shared-bindings/_pixelbuf/PixelBuf.c @@ -311,7 +311,7 @@ STATIC mp_obj_t pixelbuf_pixelbuf_subscr(mp_obj_t self_in, mp_obj_t index_in, mp } mp_obj_tuple_t* t = MP_OBJ_TO_PTR(mp_obj_new_tuple(len, NULL)); for (uint i = 0; i < len; i++) { - t->items[i] = common_hal__pixelbuf_pixelbuf_get_pixel(self_in, i * slice.step); + t->items[i] = common_hal__pixelbuf_pixelbuf_get_pixel(self_in, i * slice.step + slice.start); } return MP_OBJ_FROM_PTR(t); } else { // Set |
