summaryrefslogtreecommitdiffstats
path: root/libdimension/gradient.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2014-05-30 19:03:33 -0400
committerTavian Barnes <tavianator@tavianator.com>2014-05-30 19:03:33 -0400
commit8807ab192b36acbc94e11790e9261c799ce77892 (patch)
tree7b37684cb5679c132d21f3bd8c2ff47a11e3df55 /libdimension/gradient.c
parent4781d3a2a7ec463ee712c8de6362d8b6c872c31b (diff)
downloaddimension-8807ab192b36acbc94e11790e9261c799ce77892.tar.xz
pattern: Use pool.
Diffstat (limited to 'libdimension/gradient.c')
-rw-r--r--libdimension/gradient.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdimension/gradient.c b/libdimension/gradient.c
index bdd6e86..2e28974 100644
--- a/libdimension/gradient.c
+++ b/libdimension/gradient.c
@@ -44,9 +44,9 @@ dmnsn_gradient_pattern_fn(const dmnsn_pattern *pattern, dmnsn_vector v)
}
dmnsn_pattern *
-dmnsn_new_gradient_pattern(dmnsn_vector orientation)
+dmnsn_new_gradient_pattern(dmnsn_pool *pool, dmnsn_vector orientation)
{
- dmnsn_gradient *gradient = DMNSN_MALLOC(dmnsn_gradient);
+ dmnsn_gradient *gradient = DMNSN_PALLOC(pool, dmnsn_gradient);
gradient->orientation = dmnsn_vector_normalized(orientation);
dmnsn_pattern *pattern = &gradient->pattern;