all repos — mgba @ 3c897faec5933db4b9f171fd3f759bcd1e4963dd

mGBA Game Boy Advance Emulator

DS Video: Fix blend bit on windows for 3D layer (fixes #611)
Vicki Pfau vi@endrift.com
Tue, 11 Apr 2017 21:13:21 -0700
commit

3c897faec5933db4b9f171fd3f759bcd1e4963dd

parent

15496611406819fbff3b0f5492078ea52ad3bc8a

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/ds/renderers/software.csrc/ds/renderers/software.c

@@ -401,7 +401,7 @@ int x;

for (x = softwareRenderer->start; x < softwareRenderer->end; ++x) { color_t color = scanline[x]; if (color & 0xFC000000) { - if (softwareRenderer->bg[0].target1) { + if (softwareRenderer->bg[0].target1 && GBAWindowControlIsBlendEnable(softwareRenderer->currentWindow.packed)) { if (softwareRenderer->blendEffect == BLEND_DARKEN) { color = _darken(color, softwareRenderer->bldy) | (color & 0xFF000000); } else if (softwareRenderer->blendEffect == BLEND_BRIGHTEN) {