Skip to content

Commit 0d267ea

Browse files
committed
fix compile fails
1 parent 659dcce commit 0d267ea

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

shared-bindings/_pixelbuf/PixelBuf.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,9 @@ STATIC mp_obj_t pixelbuf_pixelbuf_fill(mp_obj_t self_in, mp_obj_t value) {
355355
if (self->auto_write)
356356
call_show(self_in);
357357
}
358+
return mp_const_none;
358359
}
359-
STATIC MP_DEFINE_CONST_FUN_OBJ_1(pixelbuf_pixelbuf_show_obj, pixelbuf_pixelbuf_fill);
360+
STATIC MP_DEFINE_CONST_FUN_OBJ_2(pixelbuf_pixelbuf_fill_obj, pixelbuf_pixelbuf_fill);
360361

361362

362363
//| .. method:: __getitem__(index)

shared-bindings/_pixelbuf/PixelBuf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ typedef struct {
4848
} pixelbuf_pixelbuf_obj_t;
4949

5050
void pixelbuf_recalculate_brightness(pixelbuf_pixelbuf_obj_t *self);
51-
mp_obj_t call_show(mp_obj_t self_in, char origin);
51+
mp_obj_t call_show(mp_obj_t self_in);
5252

5353
#endif // CP_SHARED_BINDINGS_PIXELBUF_PIXELBUF_H

0 commit comments

Comments
 (0)