diff options
author | pacien | 2017-12-31 18:22:51 +0100 |
---|---|---|
committer | pacien | 2017-12-31 18:22:51 +0100 |
commit | 8565b20b86a489b09f611ed1cd3b0ba7ac23a94a (patch) | |
tree | 5977c3539c27e0f9431ea7a2e779dc37d54dcfce /src/painter | |
parent | 3e6c3cea17042e83d8e48b87abd89c617a2f70f3 (diff) | |
download | morpher-8565b20b86a489b09f611ed1cd3b0ba7ac23a94a.tar.gz |
Fix dimension swap
Signed-off-by: pacien <pacien.trangirard@pacien.net>
Diffstat (limited to 'src/painter')
-rw-r--r-- | src/painter/rasterizer.c | 2 |
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; |