summaryrefslogtreecommitdiff
path: root/src/code/flg_set.c
diff options
context:
space:
mode:
authorfig02 <fig02srl@gmail.com>2020-10-29 17:31:09 -0400
committerGitHub <noreply@github.com>2020-10-29 17:31:09 -0400
commit3c5fe66dcd45cd5cb100c02196021d8d13341991 (patch)
tree8de26c4588a0d2e41661fb381a1d1796d6b9bd49 /src/code/flg_set.c
parent92bb1fb21006189ced43ab28753a12adc9aa21fc (diff)
Use macros for oGfxCtx accesses (#465)
* fix colliderinit typo * fix initchain * reloc * add defines * add defines * missed some on merge * rename gfxCtx and add comment * remove space
Diffstat (limited to 'src/code/flg_set.c')
-rw-r--r--src/code/flg_set.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/code/flg_set.c b/src/code/flg_set.c
index 44707957a..a2bef505a 100644
--- a/src/code/flg_set.c
+++ b/src/code/flg_set.c
@@ -46,9 +46,9 @@ void FlagSet_Update(GlobalContext* globalCtx) {
GfxPrint printer;
s32 pad;
- polyOpa = oGfxCtx->polyOpa.p;
+ polyOpa = POLY_OPA_DISP;
gfx = Graph_GfxPlusOne(polyOpa);
- gSPDisplayList(oGfxCtx->overlay.p++, gfx);
+ gSPDisplayList(OVERLAY_DISP++, gfx);
GfxPrint_Init(&printer);
GfxPrint_Open(&printer, gfx);
@@ -141,7 +141,7 @@ void FlagSet_Update(GlobalContext* globalCtx) {
gSPEndDisplayList(gfx++);
Graph_BranchDlist(polyOpa, gfx);
- oGfxCtx->polyOpa.p = gfx;
+ POLY_OPA_DISP = gfx;
}
if (CHECK_BTN_ALL(input->press.button, BTN_L)) {