diff options
-rw-r--r-- | src/morpher/morphing.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/morpher/morphing.c b/src/morpher/morphing.c index f6e9387..7df3839 100644 --- a/src/morpher/morphing.c +++ b/src/morpher/morphing.c | |||
@@ -28,7 +28,7 @@ static inline void ensure_delaunay_neighborhood(TriangleMap *t) { | |||
28 | Morphing *morphing_create(IntVector width, IntVector height) { | 28 | Morphing *morphing_create(IntVector width, IntVector height) { |
29 | Morphing *m = malloc_or_die(sizeof(Morphing)); | 29 | Morphing *m = malloc_or_die(sizeof(Morphing)); |
30 | m->dim = (CartesianVector) {width, height}; | 30 | m->dim = (CartesianVector) {width, height}; |
31 | m->first = init_trianglemap(width, height); | 31 | m->first = init_trianglemap(width - 1, height - 1); |
32 | m->center = m->first; | 32 | m->center = m->first; |
33 | return m; | 33 | return m; |
34 | } | 34 | } |