summaryrefslogtreecommitdiff
path: root/src/painter
diff options
context:
space:
mode:
Diffstat (limited to 'src/painter')
-rw-r--r--src/painter/rasterizer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/painter/rasterizer.c b/src/painter/rasterizer.c
index 881920a..1ba726c 100644
--- a/src/painter/rasterizer.c
+++ b/src/painter/rasterizer.c
@@ -79,7 +79,7 @@ Canvas *rasterize(Canvas *source, Canvas *target, Morphing *m, TimeVector frame)
79 assert(vector_equals(canvas_get_dim(source), m->dim) && vector_equals(canvas_get_dim(target), m->dim)); 79 assert(vector_equals(canvas_get_dim(source), m->dim) && vector_equals(canvas_get_dim(target), m->dim));
80 assert(frame >= TIME_ORIGIN && frame <= TIME_UNIT); 80 assert(frame >= TIME_ORIGIN && frame <= TIME_UNIT);
81 81
82 rctx = (RasterizationContext) {canvas_create(m->dim.y, m->dim.x), source, target, frame}; 82 rctx = (RasterizationContext) {canvas_create(m->dim.x, m->dim.y), source, target, frame};
83 for (t = m->first; t != NULL; t = t->next) draw_triangle(t, &rctx); 83 for (t = m->first; t != NULL; t = t->next) draw_triangle(t, &rctx);
84 84
85 return rctx.result; 85 return rctx.result;