diff options
| author | Roy Hooper <rhooper@toybox.ca> | 2019-12-02 14:25:57 -0500 |
|---|---|---|
| committer | Roy Hooper <rhooper@toybox.ca> | 2019-12-02 14:25:57 -0500 |
| commit | 0d267eaee13ec2e4f5a48947974fb612cdab6b96 (patch) | |
| tree | 79b33876bc68bf16cc9338fb1343ee6477f1c377 /shared-bindings/_pixelbuf | |
| parent | 659dcce635a0302625fd1f702843f1c793191e76 (diff) | |
fix compile fails
Diffstat (limited to 'shared-bindings/_pixelbuf')
| -rw-r--r-- | shared-bindings/_pixelbuf/PixelBuf.c | 3 | ||||
| -rw-r--r-- | shared-bindings/_pixelbuf/PixelBuf.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/shared-bindings/_pixelbuf/PixelBuf.c b/shared-bindings/_pixelbuf/PixelBuf.c index 8ddcf6648..d0be2b61d 100644 --- a/shared-bindings/_pixelbuf/PixelBuf.c +++ b/shared-bindings/_pixelbuf/PixelBuf.c @@ -355,8 +355,9 @@ STATIC mp_obj_t pixelbuf_pixelbuf_fill(mp_obj_t self_in, mp_obj_t value) { if (self->auto_write) call_show(self_in); } + return mp_const_none; } -STATIC MP_DEFINE_CONST_FUN_OBJ_1(pixelbuf_pixelbuf_show_obj, pixelbuf_pixelbuf_fill); +STATIC MP_DEFINE_CONST_FUN_OBJ_2(pixelbuf_pixelbuf_fill_obj, pixelbuf_pixelbuf_fill); //| .. method:: __getitem__(index) diff --git a/shared-bindings/_pixelbuf/PixelBuf.h b/shared-bindings/_pixelbuf/PixelBuf.h index 18caa9219..aa09e9261 100644 --- a/shared-bindings/_pixelbuf/PixelBuf.h +++ b/shared-bindings/_pixelbuf/PixelBuf.h @@ -48,6 +48,6 @@ typedef struct { } pixelbuf_pixelbuf_obj_t; void pixelbuf_recalculate_brightness(pixelbuf_pixelbuf_obj_t *self); -mp_obj_t call_show(mp_obj_t self_in, char origin); +mp_obj_t call_show(mp_obj_t self_in); #endif // CP_SHARED_BINDINGS_PIXELBUF_PIXELBUF_H |
