all repos — mgba @ 09c46ca2c4e019d25e5e0301db738d557605e105

mGBA Game Boy Advance Emulator

DS GX: Fix pixel gap on mirroring textures
Vicki Pfau vi@endrift.com
Wed, 08 Mar 2017 23:49:33 -0800
commit

09c46ca2c4e019d25e5e0301db738d557605e105

parent

f3311cc373db650d11fc4fef4a7c269d50021a03

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

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

@@ -105,7 +105,7 @@ s = poly->texW - 1;

} } else if (DSGXTexParamsIsSMirror(poly->poly->texParams)) { if (s & poly->texW) { - s = poly->texW - s; + s = poly->texW - s - 1; } s &= poly->texW - 1; } else {

@@ -119,7 +119,7 @@ t = poly->texW - 1;

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