From 3e4b66b093bbd349bf9a00084df2e3d09604dbea Mon Sep 17 00:00:00 2001 From: Ryan Oldenburg Date: Sat, 5 Jun 2021 01:38:28 -0500 Subject: [PATCH] faster --- src/pixie/paths.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pixie/paths.nim b/src/pixie/paths.nim index f0ed1f7..499df26 100644 --- a/src/pixie/paths.nim +++ b/src/pixie/paths.nim @@ -1180,7 +1180,7 @@ proc computeCoverages( winding = partitioning.partitions[partitionIndex][i][1] if segment.at.y <= scanline.a.y and segment.to.y >= scanline.a.y: var at: Vec2 - if scanline.intersects(segment, at) and segment.to != at: + if segment.to != at and scanline.intersects(segment, at): if numHits == hits.len: hits.setLen(hits.len * 2) hits[numHits] = (min(at.x, size.x), winding)