summaryrefslogtreecommitdiffstats
path: root/libdimension/canvas.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/canvas.c')
-rw-r--r--libdimension/canvas.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdimension/canvas.c b/libdimension/canvas.c
index e290910..a86a48a 100644
--- a/libdimension/canvas.c
+++ b/libdimension/canvas.c
@@ -34,7 +34,7 @@ dmnsn_new_canvas(dmnsn_pool *pool, size_t width, size_t height)
dmnsn_canvas *canvas = DMNSN_PALLOC_TIDY(pool, dmnsn_canvas, dmnsn_canvas_cleanup);
canvas->width = width;
canvas->height = height;
- canvas->optimizers = dmnsn_new_array(sizeof(dmnsn_canvas_optimizer));
+ canvas->optimizers = DMNSN_NEW_ARRAY(dmnsn_canvas_optimizer);
canvas->pixels = dmnsn_malloc(sizeof(dmnsn_tcolor)*width*height);
return canvas;
}