From 237e4d442a9ca7c575368574a4c336cf90d655fa Mon Sep 17 00:00:00 2001 From: Ryan Oldenburg Date: Sun, 28 Nov 2021 03:27:01 -0600 Subject: [PATCH] f --- src/pixie/blends.nim | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pixie/blends.nim b/src/pixie/blends.nim index 94fdaf4..0dd1d28 100644 --- a/src/pixie/blends.nim +++ b/src/pixie/blends.nim @@ -166,9 +166,7 @@ proc SetSat(C: Color, s: float32): Color {.inline.} = result = (C - min([C.r, C.g, C.b])) * s / satC proc blendNormal(backdrop, source: ColorRGBX): ColorRGBX = - if backdrop.a == 0: - return source - if source.a == 255: + if backdrop.a == 0 or source.a == 255: return source if source.a == 0: return backdrop