summaryrefslogtreecommitdiff
path: root/src/code/z_debug.c
diff options
context:
space:
mode:
authorRoman971 <32455037+Roman971@users.noreply.github.com>2020-08-30 01:00:17 +0200
committerGitHub <noreply@github.com>2020-08-29 19:00:17 -0400
commit2a2fdf7f3edea4b6ce575eb675e8c3a967371b7c (patch)
treeca122e1f3122649cdadc97906b9e636f04813784 /src/code/z_debug.c
parent1f1b5e39f5235fcebc517fd8f932079bcd921653 (diff)
Introduce OPEN_DISPS/CLOSE_DISPS macros (#360)
Diffstat (limited to 'src/code/z_debug.c')
-rw-r--r--src/code/z_debug.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/code/z_debug.c b/src/code/z_debug.c
index 48caa825d..41f63005c 100644
--- a/src/code/z_debug.c
+++ b/src/code/z_debug.c
@@ -220,14 +220,13 @@ void func_80063D7C(GraphicsContext* gfxCtx) {
Gfx* sp78;
GfxPrint gfxPrint;
Gfx* tempRet;
- s32 pad;
- Gfx* dispRefs[4]; // stores state of GfxCtx next ptrs
- Graph_OpenDisps(dispRefs, gfxCtx, "../z_debug.c", 628);
+ OPEN_DISPS(gfxCtx, "../z_debug.c", 628);
+
GfxPrint_Init(&gfxPrint);
- sp78 = gfxCtx->polyOpa.p;
- tempRet = Graph_GfxPlusOne(gfxCtx->polyOpa.p);
- gSPDisplayList(gfxCtx->overlay.p++, tempRet);
+ sp78 = oGfxCtx->polyOpa.p;
+ tempRet = Graph_GfxPlusOne(oGfxCtx->polyOpa.p);
+ gSPDisplayList(oGfxCtx->overlay.p++, tempRet);
GfxPrint_Open(&gfxPrint, tempRet);
if ((OREG(0) == 1) || (OREG(0) == 8)) {
@@ -242,8 +241,11 @@ void func_80063D7C(GraphicsContext* gfxCtx) {
sp7C = GfxPrint_Close(&gfxPrint);
gSPEndDisplayList(sp7C++);
Graph_BranchDlist(sp78, sp7C);
- gfxCtx->polyOpa.p = sp7C;
+ oGfxCtx->polyOpa.p = sp7C;
+
if (0) {}
- Graph_CloseDisps(dispRefs, gfxCtx, "../z_debug.c", 664);
+
+ CLOSE_DISPS(gfxCtx, "../z_debug.c", 664);
+
GfxPrint_Destroy(&gfxPrint);
}