From e0a94da7c7b657cebbb9e07c861054540706d5da Mon Sep 17 00:00:00 2001 From: John Tsiombikas Date: Sat, 15 Sep 2018 19:32:52 +0300 Subject: [PATCH 1/1] fixed overdlow when calculating winding of large polygons in the rasterizert --- src/polytmpl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/polytmpl.h b/src/polytmpl.h index d61ac8e..2147666 100644 --- a/src/polytmpl.h +++ b/src/polytmpl.h @@ -96,7 +96,7 @@ void POLYFILL(struct pvertex *pv, int nverts) int winding = 0; for(i=0; i> 8) * ((pv[next].y + pv[i].y) >> 8); } /* +1 to avoid crashing due to off-by-one rounding errors in the rasterization */ -- 1.7.10.4