From 03d11c3d0cdb6b73e47dbab2790b5a2b4c7e9c6d Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Sat, 18 Mar 2017 17:49:12 -0700 Subject: [PATCH] DS GX: Fix alpha on clear background --- src/ds/gx/software.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ds/gx/software.c b/src/ds/gx/software.c index 481882595..e9ad9a73e 100644 --- a/src/ds/gx/software.c +++ b/src/ds/gx/software.c @@ -644,8 +644,10 @@ static void DSGXSoftwareRendererDrawScanline(struct DSGXRenderer* renderer, int } } else if (a) { // TODO: Disable alpha? - color = _mix32(a, color, 0x1F - a, current); - color |= ab << 27; + if (b) { + color = _mix32(a, color, 0x1F - a, current); + color |= ab << 27; + } if (softwareRenderer->wSort) { if (span->ep[0].w < softwareRenderer->depthBuffer[x]) { softwareRenderer->depthBuffer[x] = span->ep[0].w;