all repos — mgba @ 9676ea17a83d97bed55586cbd396afe03b55c3d8

mGBA Game Boy Advance Emulator

DS GX: Fix T-repeat textures (fixes #577)
Vicki Pfau vi@endrift.com
Mon, 10 Apr 2017 00:20:40 -0700
commit

9676ea17a83d97bed55586cbd396afe03b55c3d8

parent

3f71924c344a6a417f2087af9482dfb8317c3133

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

jump to
M CHANGESCHANGES

@@ -2,6 +2,7 @@ medusa alpha 2: (Future)

Bugfixes: - DS Video: Fix VRAM mirroring in the renderer (fixes mgba.io/i/561) - 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) 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

@@ -122,7 +122,7 @@ if (!DSGXTexParamsIsTRepeat(poly->texParams)) {

if (t < 0) { t = 0; } else if (t >= poly->texH) { - t = poly->texW - 1; + t = poly->texH - 1; } } else if (DSGXTexParamsIsTMirror(poly->texParams)) { if (t & poly->texH) {