From 3c897faec5933db4b9f171fd3f759bcd1e4963dd Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Tue, 11 Apr 2017 21:13:21 -0700 Subject: [PATCH] DS Video: Fix blend bit on windows for 3D layer (fixes #611) --- src/ds/renderers/software.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ds/renderers/software.c b/src/ds/renderers/software.c index 5c7776a1f..17fe482db 100644 --- a/src/ds/renderers/software.c +++ b/src/ds/renderers/software.c @@ -401,7 +401,7 @@ static void DSVideoSoftwareRendererDrawGBAScanline(struct GBAVideoRenderer* rend 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) {