1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-07-05 15:34:41 +00:00

Introduce OPEN_DISPS/CLOSE_DISPS macros (#360)

This commit is contained in:
Roman971 2020-08-30 01:00:17 +02:00 committed by GitHub
parent 1f1b5e39f5
commit 2a2fdf7f3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
134 changed files with 3133 additions and 3775 deletions

View file

@ -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);
}