This commit is contained in:
UnknownShadow200 2024-03-25 07:03:05 +11:00
parent 32c135ea5d
commit b2941dd4b6

View file

@ -230,7 +230,7 @@ static cc_bool gfx_hadFog;
void Gfx_Begin2D(int width, int height) { void Gfx_Begin2D(int width, int height) {
struct Matrix ortho; struct Matrix ortho;
// intentionally biased more towards positive Z to reduce 2D clipping issues on the DS // intentionally biased more towards positive Z to reduce 2D clipping issues on the DS
Gfx_CalcOrthoMatrix(&ortho, (float)width, (float)height, -10.0f, 100.0f); Gfx_CalcOrthoMatrix(&ortho, (float)width, (float)height, -100.0f, 1000.0f);
Gfx_LoadMatrix(MATRIX_PROJECTION, &ortho); Gfx_LoadMatrix(MATRIX_PROJECTION, &ortho);
Gfx_LoadIdentityMatrix(MATRIX_VIEW); Gfx_LoadIdentityMatrix(MATRIX_VIEW);