diff options
author | pacien | 2017-12-27 01:11:18 +0100 |
---|---|---|
committer | pacien | 2017-12-27 01:11:18 +0100 |
commit | f5ff85f3c7e7d6bf11a423c497d2b3ce76cfafd8 (patch) | |
tree | 7227784b64d29227f2e4df40c2317e4270e8c318 | |
parent | facf2d3b8fcce3407b456330221de9840d308447 (diff) | |
download | morpher-f5ff85f3c7e7d6bf11a423c497d2b3ce76cfafd8.tar.gz |
Fix trianglemap initialisation pixel index
Signed-off-by: pacien <pacien.trangirard@pacien.net>
-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 | } |