Support blending with sprites behind a background
Jeffrey Pfau jeffrey@endrift.com
Thu, 25 Apr 2013 02:08:12 -0700
1 files changed,
3 insertions(+),
0 deletions(-)
M
src/gba/renderers/video-software.c
→
src/gba/renderers/video-software.c
@@ -317,6 +317,9 @@ if (renderer->flags[offset].target1 && flags.target2) {
renderer->row[offset] = _mix(renderer->bldb, renderer->d.palette[entry], renderer->blda, renderer->row[offset]); } renderer->flags[offset].finalized = 1; + } else if (renderer->flags[offset].isSprite && renderer->flags[offset].target2 && flags.target1) { + renderer->row[offset] = _mix(renderer->blda, renderer->d.palette[entry], renderer->bldb, renderer->row[offset]); + renderer->flags[offset].finalized = 1; } else { renderer->row[offset] = renderer->d.palette[entry]; renderer->flags[offset].target1 = flags.target1;