summaryrefslogtreecommitdiff
path: root/src/code/z_debug.c
diff options
context:
space:
mode:
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);
}