mirror of
https://github.com/zeldaret/oot
synced 2026-06-09 04:39:41 -04:00
Introduce OPEN_DISPS/CLOSE_DISPS macros (#360)
This commit is contained in:
+10
-8
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user