This commit is contained in:
Ryan Oldenburg 2021-11-28 03:27:01 -06:00
parent 50621aec50
commit 237e4d442a

View file

@ -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