diff options
| author | Derek Hensley <hensley.derek58@gmail.com> | 2024-07-28 10:04:09 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-28 13:04:09 -0400 |
| commit | 43cac345667dee5568434c1cd54f432322dde1a1 (patch) | |
| tree | 76f94ace368fab01c0371a137f302ca3f8b1781b /src/code/graph.c | |
| parent | d0cf4fbcead28f728828ae92792afba9ce1cd8ad (diff) | |
Misc Cleanup (#1665)
* prefix in-function static data in z_scene_proc with s
prefix in-function static data in z_eff_blure with s
prefix in-function static data in Graph_TaskSet00 with s
prefix in-function static data in Fault_SetOptions with s
* Use uintptr_t in main
* hardware_regs.ld
* Remove some unessary blob comments
* object_link_child_TLUT_00DA80
* object_kz texture and tlut
* initialize typos
Diffstat (limited to 'src/code/graph.c')
| -rw-r--r-- | src/code/graph.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/code/graph.c b/src/code/graph.c index 191ea1960..2be2d9de8 100644 --- a/src/code/graph.c +++ b/src/code/graph.c @@ -138,8 +138,8 @@ void Graph_Destroy(GraphicsContext* gfxCtx) { * If it does not signal completion in that time, retry or trigger a crash. */ void Graph_TaskSet00(GraphicsContext* gfxCtx, GameState* gameState) { - static s32 retryCount = 10; - static s32 cfbIdx = 0; + static s32 sRetryCount = 10; + static s32 sCfbIndex = 0; OSTask_t* task = &gfxCtx->task.list.t; OSScTask* scTask = &gfxCtx->task; OSTimer timer; @@ -153,8 +153,8 @@ retry: if (msg == (OSMesg)666) { osSyncPrintf("GRAPH SP TIMEOUT\n"); - if (retryCount >= 0) { - retryCount--; + if (sRetryCount >= 0) { + sRetryCount--; Sched_SendGfxCancelMsg(&gScheduler); goto retry; } else { @@ -200,8 +200,8 @@ retry: { s32 pad; } - cfb = &sGraphCfbInfos[cfbIdx]; - cfbIdx = (cfbIdx + 1) % ARRAY_COUNT(sGraphCfbInfos); + cfb = &sGraphCfbInfos[sCfbIndex]; + sCfbIndex = (sCfbIndex + 1) % ARRAY_COUNT(sGraphCfbInfos); cfb->framebuffer = gfxCtx->curFrameBuffer; cfb->swapBuffer = gfxCtx->curFrameBuffer; |
