all repos — mgba @ 4b513e23ee83592819513ed82c5ba5876d3513d7

mGBA Game Boy Advance Emulator

DS GX: Finish box test
Vicki Pfau vi@endrift.com
Sat, 11 Mar 2017 20:25:08 -0500
commit

4b513e23ee83592819513ed82c5ba5876d3513d7

parent

8a3dabdf60a441d277840a188ea4b33bcb8ea8d5

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

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

@@ -385,13 +385,19 @@

if (vx < gx->viewportX1) { return false; } - if (vx >= gx->viewportX2) { + if (vx > gx->viewportX2) { return false; } if (vy < gx->viewportY1) { return false; } - if (vy >= gx->viewportY2) { + if (vy > gx->viewportY2) { + return false; + } + if (vz < -vw) { + return false; + } + if (vz > vw) { return false; } // TODO: depth clipping