X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=src%2Fpolytmpl.h;h=55096ef61b058a625e304110dd877368be756dfa;hp=d61ac8eb21bd94546eba7fae1f320b7d72ee4219;hb=cbda3c45c9f5d000c06fb36399778189c245dc4b;hpb=5029eb9f7a538dd58e1c66c0945784acac8cc58b diff --git a/src/polytmpl.h b/src/polytmpl.h index d61ac8e..55096ef 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> 4) * ((pv[next].y + pv[i].y) >> 4); } /* +1 to avoid crashing due to off-by-one rounding errors in the rasterization */ @@ -143,8 +143,10 @@ void POLYFILL(struct pvertex *pv, int nverts) uint32_t res, tmp; if(winding < 0) { + // clockwise edge = y0 > y1 ? left : right; } else { + // counter-clockwise edge = y0 > y1 ? right : left; } res = SCANEDGE(pv + i, pv + next, edge);