From 9396945772916f456cb70f41336e6f1412d88aa7 Mon Sep 17 00:00:00 2001 From: Ryan Oldenburg Date: Fri, 17 Jun 2022 01:22:58 -0500 Subject: [PATCH] faster --- src/pixie/paths.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pixie/paths.nim b/src/pixie/paths.nim index 4cbee75..644eaa1 100644 --- a/src/pixie/paths.nim +++ b/src/pixie/paths.nim @@ -1429,6 +1429,8 @@ proc fillCoverage( let coverage = coverages[x - startX] if coverage == 255 and rgbx.a == 255: image.unsafe[x, y] = rgbx + elif coverage == 0: + discard else: let backdrop = image.unsafe[x, y] image.unsafe[x, y] = blendNormal(backdrop, source(rgbx, coverage))