From ec9b5839ade6b9ab5b9aa51260865ea7b894b496 Mon Sep 17 00:00:00 2001 From: engineer124 <47598039+engineer124@users.noreply.github.com> Date: Wed, 23 Oct 2024 11:51:00 +1100 Subject: Cleanup gSPMatrix, rename `Matrix_New` -> `Matrix_Finalize`, add MATRIX_FINALIZE_AND_LOAD (#1729) * mtx-finalize * cleanup gSPMatrix --- src/code/z_lifemeter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/code/z_lifemeter.c') diff --git a/src/code/z_lifemeter.c b/src/code/z_lifemeter.c index 67e1e278a..91f5da046 100644 --- a/src/code/z_lifemeter.c +++ b/src/code/z_lifemeter.c @@ -388,7 +388,7 @@ void LifeMeter_Draw(PlayState* play) { mtx = GRAPH_ALLOC(gfxCtx, sizeof(Mtx)); Mtx_SetTranslateScaleMtx(mtx, 1.0f - (0.32f * lifesize), 1.0f - (0.32f * lifesize), 1.0f - (0.32f * lifesize), -130.0f + offsetX, 94.5f - offsetY, 0.0f); - gSPMatrix(OVERLAY_DISP++, mtx, G_MTX_LOAD | G_MTX_MODELVIEW); + gSPMatrix(OVERLAY_DISP++, mtx, G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW); gSPVertex(OVERLAY_DISP++, beatingHeartVtx, 4, 0); gSP1Quadrangle(OVERLAY_DISP++, 0, 2, 3, 1, 0); } -- cgit v1.2.3