faster
This commit is contained in:
parent
e11a86dc10
commit
9396945772
1 changed files with 2 additions and 0 deletions
|
@ -1429,6 +1429,8 @@ proc fillCoverage(
|
|||
let coverage = coverages[x - startX]
|
||||
if coverage == 255 and rgbx.a == 255:
|
||||
image.unsafe[x, y] = rgbx
|
||||
elif coverage == 0:
|
||||
discard
|
||||
else:
|
||||
let backdrop = image.unsafe[x, y]
|
||||
image.unsafe[x, y] = blendNormal(backdrop, source(rgbx, coverage))
|
||||
|
|
Loading…
Reference in a new issue