From 8ce82c20b2316dd657ca51d86b38f0f203ff6b88 Mon Sep 17 00:00:00 2001 From: Ryan Oldenburg Date: Mon, 31 May 2021 19:22:14 -0500 Subject: [PATCH] rename --- src/pixie/paths.nim | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/pixie/paths.nim b/src/pixie/paths.nim index aeb1e8b..39b8aff 100644 --- a/src/pixie/paths.nim +++ b/src/pixie/paths.nim @@ -1197,15 +1197,14 @@ proc fillShapes( bounds = computePixelBounds(segments) startX = max(0, bounds.x.int) startY = max(0, bounds.y.int) - stopY = min(image.height, (bounds.y + bounds.h).int) - pathHeight = stopY - startY - partitions = partitionSegments(segments, startY, pathHeight) + pathHeight = min(image.height, (bounds.y + bounds.h).int) + partitions = partitionSegments(segments, startY, pathHeight - startY) var coverages = newSeq[uint8](image.width) hits = newSeq[(float32, int16)](4) - for y in startY ..< stopY: + for y in startY ..< pathHeight: computeCoverages( coverages, hits,