From 57ab45f7a1f18a5092b3506f6770fca46a4713d8 Mon Sep 17 00:00:00 2001 From: Ryan Oldenburg Date: Thu, 3 Jun 2021 00:07:41 -0500 Subject: [PATCH] 2.0.4 --- pixie.nimble | 2 +- src/pixie/paths.nim | 4 ++-- tests/images/context/clearRect_1.png | Bin 1944 -> 1893 bytes 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pixie.nimble b/pixie.nimble index e163b28..512aea1 100644 --- a/pixie.nimble +++ b/pixie.nimble @@ -1,4 +1,4 @@ -version = "2.0.3" +version = "2.0.4" author = "Andre von Houck and Ryan Oldenburg" description = "Full-featured 2d graphics library for Nim." license = "MIT" diff --git a/src/pixie/paths.nim b/src/pixie/paths.nim index a379113..573ac68 100644 --- a/src/pixie/paths.nim +++ b/src/pixie/paths.nim @@ -1562,7 +1562,7 @@ proc fillPath*( ) = ## Fills a path. if paint.kind == pkSolid: - if paint.color.a > 0: + if paint.color.a > 0 or paint.blendMode == bmOverwrite: var shapes = parseSomePath(path, transform.pixelScale()) shapes.transform(transform) image.fillShapes(shapes, paint.color, windingRule, paint.blendMode) @@ -1626,7 +1626,7 @@ proc strokePath*( ) = ## Strokes a path. if paint.kind == pkSolid: - if paint.color.a > 0: + if paint.color.a > 0 or paint.blendMode == bmOverwrite: var strokeShapes = strokeShapes( parseSomePath(path, transform.pixelScale()), strokeWidth, diff --git a/tests/images/context/clearRect_1.png b/tests/images/context/clearRect_1.png index 80156ec69c1fe334ef98aeeb91be174e53b024c2..994056e7cbfcb2843b46d362a69ea890c1fd14e4 100644 GIT binary patch literal 1893 zcmcIldpJ~S7@uKoX4b9CxFr)MX-1lEB4vliP}k`(rG-N0Z()a@)1CY0-UhvKOAsho*quGcH*<7$KsDq zL-Og^)SWm=)0Wwg*|rZ3mQp(@G169aBZ$~MS>$JCnaObsAwHZl1e%(qMSXFS;v;v6 zZj2Iy9#!d$zWM_boNpGfMaIEN8>wQX9UveyhwJ%n?$Hp(ypXf9)eAHe9Uq5;bzN)q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