Merge pull request #75 from guzba/master

remove break
This commit is contained in:
treeform 2021-01-25 08:17:11 -08:00 committed by GitHub
commit ba99d39fa6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -908,7 +908,6 @@ proc fillShapes(
mm_storeu_si128(image.data[index].addr, blendNormalSimd(backdrop, source)) mm_storeu_si128(image.data[index].addr, blendNormalSimd(backdrop, source))
x += 4 x += 4
break
while x < image.width: while x < image.width:
if x + 2 <= coverages.len: if x + 2 <= coverages.len:
@ -927,7 +926,7 @@ proc fillShapes(
image.setRgbaUnsafe(x, y, blendNormal(backdrop, source)) image.setRgbaUnsafe(x, y, blendNormal(backdrop, source))
inc x inc x
proc parseSomePath(path: SomePath): seq[seq[Segment]] = proc parseSomePath(path: SomePath): seq[seq[Segment]] {.inline.} =
when type(path) is string: when type(path) is string:
parsePath(path).commandsToShapes() parsePath(path).commandsToShapes()
elif type(path) is Path: elif type(path) is Path: