aboutsummaryrefslogtreecommitdiff
path: root/generic/Triangles.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/Triangles.c')
-rw-r--r--generic/Triangles.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/Triangles.c b/generic/Triangles.c
index c1c7165..f584d5a 100644
--- a/generic/Triangles.c
+++ b/generic/Triangles.c
@@ -822,9 +822,9 @@ PickVertex(ZnItem item,
* Update the opposite vertex.
*/
i = (*vertex+1) % num_points;
- new_dist = ZnLineToPointDist(&points[*vertex], &points[i], p);
+ new_dist = ZnLineToPointDist(&points[*vertex], &points[i], p, NULL);
k = ((unsigned)(*vertex-1)) % num_points;
- dist2 = ZnLineToPointDist(&points[*vertex], &points[k], p);
+ dist2 = ZnLineToPointDist(&points[*vertex], &points[k], p, NULL);
if (dist2 < new_dist) {
*o_vertex = k;
}