From 550bec61170bc7b1a4c5abd293b948688fdbced5 Mon Sep 17 00:00:00 2001 From: Ryan Oldenburg Date: Sun, 12 Jun 2022 23:10:41 -0500 Subject: [PATCH] f --- src/pixie/paths.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pixie/paths.nim b/src/pixie/paths.nim index 6d0eba7..e098980 100644 --- a/src/pixie/paths.nim +++ b/src/pixie/paths.nim @@ -1320,9 +1320,9 @@ proc clearUnsafe(target: Image | Mask, startX, startY, toX, toY: int) = start = target.dataIndex(startX, startY) len = target.dataIndex(toX, toY) - start when type(target) is Image: - target.data.fillUnsafe(rgbx(0, 0, 0, 0), start, len) + fillUnsafe(target.data, rgbx(0, 0, 0, 0), start, len) else: # target is Mask - target.data.fillUnsafe(0, start, len) + fillUnsafe(target.data, 0, start, len) proc fillCoverage( image: Image,