summaryrefslogtreecommitdiff
path: root/shared-bindings/_pixelbuf
diff options
context:
space:
mode:
authorBernhard Boser <boser@berkeley.edu>2021-01-18 11:26:39 -0800
committerBernhard Boser <boser@berkeley.edu>2021-01-18 11:26:39 -0800
commite27dd26dc72b3603c0f50796d7747fb4858af113 (patch)
tree4d139685ae771e0854e2d9187d496253106a4572 /shared-bindings/_pixelbuf
parent1e88b9411d54e5c15a27d4a9c2748c264cb9522f (diff)
parent6a76b60027aa163756aace389a5c9203594759ce (diff)
make translate, BEWARE adds the 'world'
Diffstat (limited to 'shared-bindings/_pixelbuf')
-rw-r--r--shared-bindings/_pixelbuf/__init__.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-bindings/_pixelbuf/__init__.c b/shared-bindings/_pixelbuf/__init__.c
index c61acc939..fdd02509c 100644
--- a/shared-bindings/_pixelbuf/__init__.c
+++ b/shared-bindings/_pixelbuf/__init__.c
@@ -51,7 +51,7 @@
//|
STATIC mp_obj_t pixelbuf_colorwheel(mp_obj_t n) {
- return MP_OBJ_NEW_SMALL_INT(colorwheel(MP_OBJ_IS_SMALL_INT(n) ? MP_OBJ_SMALL_INT_VALUE(n) : mp_obj_float_get(n)));
+ return MP_OBJ_NEW_SMALL_INT(colorwheel(MP_OBJ_IS_SMALL_INT(n) ? MP_OBJ_SMALL_INT_VALUE(n) : mp_obj_get_float(n)));
}
STATIC MP_DEFINE_CONST_FUN_OBJ_1(pixelbuf_colorwheel_obj, pixelbuf_colorwheel);