summaryrefslogtreecommitdiff
path: root/shared-bindings/_pixelbuf
diff options
context:
space:
mode:
authorRoy Hooper <rhooper@toybox.ca>2019-12-29 13:56:47 -0500
committerRoy Hooper <rhooper@toybox.ca>2019-12-29 13:56:47 -0500
commit023d64fe4a448101545a964d50e72dcc5de0a8d2 (patch)
treec05621a3b81618f4e30cd0aafd4215d826b3a8ed /shared-bindings/_pixelbuf
parent09d4fe03249eee6561dfec232c85344eba4d07a4 (diff)
parentf1a9039632bafba8bf43e9f3b3951c82ca313678 (diff)
Merge branch 'pixelbuf-subscr-change' into new-pixelbuf-api
Diffstat (limited to 'shared-bindings/_pixelbuf')
-rw-r--r--shared-bindings/_pixelbuf/PixelBuf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/shared-bindings/_pixelbuf/PixelBuf.c b/shared-bindings/_pixelbuf/PixelBuf.c
index 1ed6f7baf..7c624a8fd 100644
--- a/shared-bindings/_pixelbuf/PixelBuf.c
+++ b/shared-bindings/_pixelbuf/PixelBuf.c
@@ -368,7 +368,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_2(pixelbuf_pixelbuf_fill_obj, pixelbuf_pixelbuf_f
//|
//| Sets the pixel value at the given index.
//|
-STATIC mp_obj_t pixelbuf_pixelbuf_subscr(mp_obj_t self_in, mp_obj_t index_in, mp_obj_t value, mp_obj_t instance) {
+STATIC mp_obj_t pixelbuf_pixelbuf_subscr(mp_obj_t self_in, mp_obj_t index_in, mp_obj_t value) {
if (value == MP_OBJ_NULL) {
// delete item
// slice deletion
@@ -431,7 +431,7 @@ STATIC mp_obj_t pixelbuf_pixelbuf_subscr(mp_obj_t self_in, mp_obj_t index_in, mp
}
}
if (self->auto_write)
- call_show(instance);
+ call_show(self_in);
return mp_const_none;
#else
return MP_OBJ_NULL; // op not supported
@@ -451,7 +451,7 @@ STATIC mp_obj_t pixelbuf_pixelbuf_subscr(mp_obj_t self_in, mp_obj_t index_in, mp
pixelbuf_set_pixel(self->buf + offset, self->two_buffers ? self->rawbuf + offset : NULL,
self->brightness, value, &self->byteorder, self->byteorder.is_dotstar);
if (self->auto_write)
- call_show(instance);
+ call_show(self_in);
return mp_const_none;
}
}