From f5ff85f3c7e7d6bf11a423c497d2b3ce76cfafd8 Mon Sep 17 00:00:00 2001 From: pacien Date: Wed, 27 Dec 2017 01:11:18 +0100 Subject: Fix trianglemap initialisation pixel index Signed-off-by: pacien --- src/morpher/morphing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { Morphing *morphing_create(IntVector width, IntVector height) { Morphing *m = malloc_or_die(sizeof(Morphing)); m->dim = (CartesianVector) {width, height}; - m->first = init_trianglemap(width, height); + m->first = init_trianglemap(width - 1, height - 1); m->center = m->first; return m; } -- cgit v1.2.3