From 2d4a80b6a309a5766d270a80fc95a5ba3e0d4930 Mon Sep 17 00:00:00 2001 From: Nigel Barber Date: Tue, 17 Apr 2018 22:48:26 +0100 Subject: [PATCH] Fix issues --- Source/tess.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/tess.c b/Source/tess.c index c293768..60affbc 100755 --- a/Source/tess.c +++ b/Source/tess.c @@ -629,7 +629,7 @@ TESStesselator* tessNewTess( TESSalloc* alloc ) tess->bmax[0] = 0; tess->bmax[1] = 0; - tess->reverseContours = 0; + tess->reverseContours = 0; tess->windingRule = TESS_WINDING_ODD; @@ -975,8 +975,8 @@ void tessAddContour( TESStesselator *tess, int size, const void* vertices, * vertices in such an order that a CCW contour will add +1 to * the winding number of the region inside the contour. */ - e->winding = (tess->reverseContours) ? -1 : 1; - e->Sym->winding = (tess->reverseContours) ? 1 : -1; + e->winding = tess->reverseContours ? -1 : 1; + e->Sym->winding = tess->reverseContours ? 1 : -1; } }