From: John Tsiombikas Date: Sat, 15 Sep 2018 16:32:52 +0000 (+0300) Subject: fixed overdlow when calculating winding of large polygons in the X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=commitdiff_plain;h=e0a94da7c7b657cebbb9e07c861054540706d5da fixed overdlow when calculating winding of large polygons in the rasterizert --- 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 */