f
This commit is contained in:
parent
50621aec50
commit
237e4d442a
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue