This commit is contained in:
Ryan Oldenburg 2021-12-13 00:36:47 -06:00
parent 1352ff73b0
commit ba6ea448e4
2 changed files with 2 additions and 2 deletions

View file

@ -477,7 +477,7 @@ proc maskNormal(backdrop, source: uint8): uint8 =
## Blending masks
blendAlpha(backdrop, source)
proc maskMask(backdrop, source: uint8): uint8 =
proc maskMask*(backdrop, source: uint8): uint8 =
## Masking masks
((backdrop.uint32 * source) div 255).uint8

View file

@ -978,7 +978,7 @@ proc drawUber(
a.unsafe[x, y] = 0
elif source != 255:
let backdrop = a.unsafe[x, y]
a.unsafe[x, y] = blendAlpha(backdrop, source)
a.unsafe[x, y] = maskMask(backdrop, source)
srcPos += dx
else:
for x in x ..< xMax: