summaryrefslogtreecommitdiff
path: root/src/code
diff options
context:
space:
mode:
authorAnghelo Carvajal <angheloalf95@gmail.com>2023-05-26 20:54:30 -0400
committerGitHub <noreply@github.com>2023-05-27 10:54:30 +1000
commit74d881e92168b467fced28c47c3d8de17bf32d38 (patch)
treee2d0901e969e229e6f2b2e79096aad8607be810a /src/code
parentc84eab6efbb10651ef99b8850588df48ed1e1559 (diff)
`gfx.h` (#1248)
* gfx.h * move rcp functions and variables to gfx.h * minor cleanup * Update include/gfx.h Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> * format --------- Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>
Diffstat (limited to 'src/code')
-rw-r--r--src/code/z_rcp.c4
-rw-r--r--src/code/z_room.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/code/z_rcp.c b/src/code/z_rcp.c
index b4bb6ea7d..ab972159c 100644
--- a/src/code/z_rcp.c
+++ b/src/code/z_rcp.c
@@ -897,8 +897,8 @@ void func_8012C240(GraphicsContext* gfxCtx) {
gSPDisplayList(gfxCtx->polyXlu.p++, &sSetupDL[6 * 0x19]);
}
-void func_8012C268(PlayState* play) {
- func_8012C28C(play->state.gfxCtx);
+void func_8012C268(GameState* gameState) {
+ func_8012C28C(gameState->gfxCtx);
}
void func_8012C28C(GraphicsContext* gfxCtx) {
diff --git a/src/code/z_room.c b/src/code/z_room.c
index da221ccd4..9fb21dfa2 100644
--- a/src/code/z_room.c
+++ b/src/code/z_room.c
@@ -18,7 +18,7 @@ void Room_DrawNormal(PlayState* play, Room* room, u32 flags) {
if (flags & ROOM_DRAW_OPA) {
func_800BCBF4(&sZeroVec, play);
gSPSegment(POLY_OPA_DISP++, 0x03, room->segment);
- func_8012C268(play);
+ func_8012C268(&play->state);
gSPMatrix(POLY_OPA_DISP++, &gIdentityMtx, G_MTX_MODELVIEW | G_MTX_LOAD);
}
@@ -85,7 +85,7 @@ void Room_DrawCullable(PlayState* play, Room* room, u32 flags) {
if (play->roomCtx.unk74 != NULL) {
gSPSegment(POLY_OPA_DISP++, 0x06, play->roomCtx.unk74);
}
- func_8012C268(play);
+ func_8012C268(&play->state);
gSPMatrix(POLY_OPA_DISP++, &gIdentityMtx, G_MTX_MODELVIEW | G_MTX_LOAD);
}