fix compile fails

This commit is contained in:
Roy Hooper 2019-12-02 14:25:57 -05:00
parent 659dcce635
commit 0d267eaee1
2 changed files with 3 additions and 2 deletions

View File

@ -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)

View File

@ -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