1
0
mirror of https://github.com/dschmenk/PLASMA.git synced 2024-09-27 04:54:37 +00:00

Set inituial mask to WHITE(7) instead of WHITE(3) to reduce artifacting in blank areas

This commit is contained in:
David Schmenk 2020-01-04 07:45:39 -08:00
parent 426b662481
commit b6a7b72fe1

View File

@ -145,7 +145,7 @@ export def spriteCompile(w, h, xcenter, ycenter, srcptr)#1
hgrRect(0, w + 21, 0, h - 1)
hgrBLT(i, 0, w, h, srcptr)
hgrCopyDst(i > 6 ?? 1 :: 0, 0, bytewidth, h, sprtptr=>s_map[i])
hgrColor(3)
hgrColor(7)
hgrRect(0, w + 21, h, h * 2 - 1)
spriteBLTMask(i, h, w, h, srcptr)
hgrCopyDst(i > 6 ?? 1 :: 0, h, bytewidth, h, sprtptr=>s_mask[i])