From cd5f699774bd5d6fb2ee46aaebda733b846e83ac Mon Sep 17 00:00:00 2001 From: treeform Date: Fri, 18 Jun 2021 15:21:35 -0700 Subject: [PATCH] Remove bmIntersectMask (its just mask) --- src/pixie/blends.nim | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/pixie/blends.nim b/src/pixie/blends.nim index 60dcfd6..57be2f0 100644 --- a/src/pixie/blends.nim +++ b/src/pixie/blends.nim @@ -32,7 +32,6 @@ type bmMask ## Special blend mode that is used for masking bmOverwrite ## Special blend mode that just copies pixels bmSubtractMask ## Inverse mask - bmIntersectMask bmExcludeMask Blender* = proc(backdrop, source: ColorRGBX): ColorRGBX @@ -477,7 +476,6 @@ proc blender*(blendMode: BlendMode): Blender = of bmMask: blendMask of bmOverwrite: blendOverwrite of bmSubtractMask: blendSubtractMask - of bmIntersectMask: blendIntersectMask of bmExcludeMask: blendExcludeMask proc maskNormal(backdrop, source: uint8): uint8 = @@ -507,7 +505,6 @@ proc masker*(blendMode: BlendMode): Masker = of bmMask: maskMask of bmOverwrite: maskOverwrite of bmSubtractMask: maskSubtract - of bmIntersectMask: maskIntersect of bmExcludeMask: maskExclude else: raise newException(PixieError, "No masker for " & $blendMode)