all repos — mgba @ 9379290050a648905d937498987c1611529694ef

mGBA Game Boy Advance Emulator

DS GX: Fix 4-color texture coordinates
Vicki Pfau vi@endrift.com
Mon, 10 Apr 2017 01:48:35 -0700
commit

9379290050a648905d937498987c1611529694ef

parent

a142dc3c9391f6218e500db0619f3a7835bd9c7e

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

jump to
M CHANGESCHANGES

@@ -5,6 +5,7 @@ - DS Video: Fix extended modes 1.x screen base range (fixes mgba.io/i/568)

- DS GX: Fix T-repeat textures (fixes mgba.io/i/577) - DS Video: Capture with alpha bit set - DS Video: Bitmap sprites use alpha bit for transparent + - DS GX: Fix 4-color texture coordinates Misc: - DS: Set boot complete bit in RAM on boot (fixes mgba.io/i/576, mgba.io/i/580, mgba.io/i/586)
M src/ds/gx/software.csrc/ds/gx/software.c

@@ -152,7 +152,7 @@ break;

case 2: texel = ((uint8_t*) poly->texBase)[texelCoord >> 2]; if (texelCoord & 0x3) { - texel >>= 2 * texel & 3; + texel >>= 2 * (texelCoord & 0x3); } texel &= 0x3; break;