This commit is contained in:
Ryan Oldenburg 2022-06-16 13:15:34 -05:00
parent 20fa9e51a0
commit 39f6c47bc6

View file

@ -1555,7 +1555,7 @@ proc fillHits(
image.unsafe[x, y] = blendNormal(backdrop, rgbx) image.unsafe[x, y] = blendNormal(backdrop, rgbx)
of MaskBlend: of MaskBlend:
var prevFilledTo: int var prevFilledTo = startX
walkHits hits, numHits, windingRule, y, image.width: walkHits hits, numHits, windingRule, y, image.width:
block: # Clear any gap between this fill and the previous fill block: # Clear any gap between this fill and the previous fill
let gapBetween = fillStart - prevFilledTo let gapBetween = fillStart - prevFilledTo
@ -1599,7 +1599,7 @@ proc fillHits(
fillUnsafe(mask.data, 255, mask.dataIndex(fillStart, y), fillLen) fillUnsafe(mask.data, 255, mask.dataIndex(fillStart, y), fillLen)
of MaskBlend: of MaskBlend:
var prevFilledTo: int var prevFilledTo = startX
walkHits hits, numHits, windingRule,y, mask.width: walkHits hits, numHits, windingRule,y, mask.width:
let gapBetween = fillStart - prevFilledTo let gapBetween = fillStart - prevFilledTo
if gapBetween > 0: if gapBetween > 0: