1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-08 14:16:52 +02:00

#368 fix shadow edges overdraw

This commit is contained in:
XProger
2022-01-30 04:41:01 +03:00
parent 92b984692c
commit 220b35ee5a

View File

@@ -118,11 +118,12 @@ rasterizeS_asm:
.align_right: .align_right:
tst width, #1 tst width, #1
beq .scanline beq .scanline
ldrb pair, [tmp, width]
subs width, #1 // width-- subs width, #1 // width--
ldrh pair, [tmp, width]
and indexA, pair, #0xFF and indexA, pair, #0xFF
ldrb indexA, [LMAP, indexA] ldrb indexA, [LMAP, indexA]
orr pair, indexA, pair, lsl #8 and pair, #0xFF00
orr pair, indexA
strh pair, [tmp, width] strh pair, [tmp, width]
beq .scanline_end // width == 0 beq .scanline_end // width == 0