all repos — mgba @ 4dc036fe215819c8edd3bf84cde5721ed958fff1

mGBA Game Boy Advance Emulator

DS GX: Fix toon shading alpha
Vicki Pfau vi@endrift.com
Sun, 30 Apr 2017 15:19:18 -0700
commit

4dc036fe215819c8edd3bf84cde5721ed958fff1

parent

7e60ed2718199a46b34078c2b1f79bbff2a09041

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

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

@@ -271,7 +271,7 @@ wr = ((r + 1) * (tr + 1) - 1) >> 6;

wg = ((g + 1) * (tg + 1) - 1) >> 6; wb = ((b + 1) * (tb + 1) - 1) >> 6; wa = ((ta + 1) * (pa + 1) - 1) >> 6; - return _finishColor(wr, wg, wb, pa); + return _finishColor(wr, wg, wb, wa); } case 3: return _finishColor(r, g, b, pa);