diff options
| author | Archez <Archez@users.noreply.github.com> | 2024-06-15 23:13:13 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-15 23:13:13 -0400 |
| commit | cd7c5ab316cb3f48bedea399e1adda2cd28f75e0 (patch) | |
| tree | 48c2f6292026171f85bfc467b2e7036d0b6244a9 /soh/src/code/game.c | |
| parent | 4441304dfd5706f335d2ee9418b6e4373262c752 (diff) | |
Clear the framebuffer for the pause menu link texture (#4213)
* clear pause menu link framebuffer
* cache bust
* Add enums for pause menu link width/height and rename the framebuffer
* revert cache bust
Diffstat (limited to 'soh/src/code/game.c')
| -rw-r--r-- | soh/src/code/game.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/soh/src/code/game.c b/soh/src/code/game.c index aa0670a21..e1974ed98 100644 --- a/soh/src/code/game.c +++ b/soh/src/code/game.c @@ -239,16 +239,15 @@ void GameState_ReqPadData(GameState* gameState) { PadMgr_RequestPadData(&gPadMgr, &gameState->input[0], 1); } -// OTRTODO -int fbTest = -1; +// Framebuffer for the Link preview on the pause menu equipment sub-screen +int gPauseLinkFrameBuffer = -1; void GameState_Update(GameState* gameState) { GraphicsContext* gfxCtx = gameState->gfxCtx; - if (fbTest == -1) - { - fbTest = gfx_create_framebuffer(64, 112, SCREEN_WIDTH, SCREEN_HEIGHT, true); - //fbTest = gfx_create_framebuffer(256, 512); + if (gPauseLinkFrameBuffer == -1) { + gPauseLinkFrameBuffer = gfx_create_framebuffer(PAUSE_EQUIP_PLAYER_WIDTH, PAUSE_EQUIP_PLAYER_HEIGHT, + PAUSE_EQUIP_PLAYER_WIDTH, PAUSE_EQUIP_PLAYER_HEIGHT, true); } GameState_SetFrameBuffer(gfxCtx); |
