Skip to content

Commit

Permalink
displayio: Fix ColorConverter make_* methods
Browse files Browse the repository at this point in the history
  • Loading branch information
arturo182 committed Nov 25, 2020
1 parent e778fc1 commit ca1a85c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shared-bindings/displayio/ColorConverter.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const mp_obj_property_t displayio_colorconverter_dither_obj = {
STATIC mp_obj_t displayio_colorconverter_make_transparent(mp_obj_t self_in, mp_obj_t transparent_color_obj) {
displayio_colorconverter_t *self = MP_OBJ_TO_PTR(self_in);

mp_int_t transparent_color = mp_obj_get_int(&transparent_color);
mp_int_t transparent_color = mp_obj_get_int(transparent_color_obj);
common_hal_displayio_colorconverter_make_transparent(self, transparent_color);
return mp_const_none;
}
Expand All @@ -128,7 +128,7 @@ MP_DEFINE_CONST_FUN_OBJ_2(displayio_colorconverter_make_transparent_obj, display
STATIC mp_obj_t displayio_colorconverter_make_opaque(mp_obj_t self_in, mp_obj_t transparent_color_obj) {
displayio_colorconverter_t *self = MP_OBJ_TO_PTR(self_in);

mp_int_t transparent_color = mp_obj_get_int(&transparent_color);
mp_int_t transparent_color = mp_obj_get_int(transparent_color_obj);
common_hal_displayio_colorconverter_make_opaque(self, transparent_color);
return mp_const_none;
}
Expand Down

0 comments on commit ca1a85c

Please sign in to comment.