diff options
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; |
