From b0303245f5306cda8a6e64fe1eb5d2cc28edbf2e Mon Sep 17 00:00:00 2001 From: Ryan Oldenburg <ryan@guzba.com> Date: Fri, 17 Jun 2022 00:19:26 -0500 Subject: [PATCH] f --- src/pixie/paths.nim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pixie/paths.nim b/src/pixie/paths.nim index 72c0160..d1f2637 100644 --- a/src/pixie/paths.nim +++ b/src/pixie/paths.nim @@ -1158,7 +1158,7 @@ proc maxEntryCount(partitioning: var Partitioning): int = proc fixed32(f: float32): Fixed32 {.inline.} = Fixed32(f * 256) -proc integer(p: Fixed32): int32 {.inline.} = +proc integer(p: Fixed32): int {.inline.} = p div 256 proc trunc(p: Fixed32): Fixed32 {.inline.} = @@ -1228,7 +1228,7 @@ iterator walkInteger( numHits: int, windingRule: WindingRule, y, width: int -): (int32, int32) = +): (int, int) = for (prevAt, at, count) in hits.walk(numHits, windingRule, y, width): let fillStart = prevAt.integer @@ -1504,7 +1504,7 @@ proc fillHits( windingRule: WindingRule, blendMode: BlendMode ) = - template simdBlob(image: Image, x: var int, len: int32, blendProc: untyped) = + template simdBlob(image: Image, x: var int, len: int, blendProc: untyped) = when allowSimd: when defined(amd64): let colorVec = mm_set1_epi32(cast[int32](rgbx)) @@ -1568,7 +1568,7 @@ proc fillHits( windingRule: WindingRule, blendMode: BlendMode ) = - template simdBlob(mask: Mask, x: var int, len: int32, blendProc: untyped) = + template simdBlob(mask: Mask, x: var int, len: int, blendProc: untyped) = when allowSimd: when defined(amd64): let vec255 = mm_set1_epi8(255)