summaryrefslogtreecommitdiffstats
path: root/libdimension-python
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension-python')
-rw-r--r--libdimension-python/dimension.pxd4
-rw-r--r--libdimension-python/dimension.pyx2
2 files changed, 2 insertions, 4 deletions
diff --git a/libdimension-python/dimension.pxd b/libdimension-python/dimension.pxd
index f6333cc..4303871 100644
--- a/libdimension-python/dimension.pxd
+++ b/libdimension-python/dimension.pxd
@@ -240,12 +240,10 @@ cdef extern from "../libdimension/dimension.h":
ctypedef struct dmnsn_map:
pass
- void dmnsn_delete_map(dmnsn_map *map)
-
void dmnsn_map_add_entry(dmnsn_map *map, double n, void *obj)
size_t dmnsn_map_size(dmnsn_map *map)
- dmnsn_map *dmnsn_new_pigment_map()
+ dmnsn_map *dmnsn_new_pigment_map(dmnsn_pool *pool)
############
# Pigments #
diff --git a/libdimension-python/dimension.pyx b/libdimension-python/dimension.pyx
index 534781c..5e02aff 100644
--- a/libdimension-python/dimension.pyx
+++ b/libdimension-python/dimension.pyx
@@ -851,7 +851,7 @@ cdef class PigmentMap(Pigment):
sRGB -- whether the gradients should be in sRGB or linear space
(default True)
"""
- cdef dmnsn_map *pigment_map = dmnsn_new_pigment_map()
+ cdef dmnsn_map *pigment_map = dmnsn_new_pigment_map(_get_pool())
cdef dmnsn_pigment *real_pigment
if hasattr(map, "items"):
for i, pigment in map.items():