Change typing of `gfxSwapCfbFunc` to be correct

This commit is contained in:
gijs 2024-05-24 15:05:06 +02:00
parent 515ffe95f1
commit 0f39352a1d
1 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@ typedef struct {
void __calls_copy_controller_data(); /* extern */
void __calls_loads_overlay_array(); /* extern */
void gfxSwapCfbFunc(void**); /* extern */
void gfxSwapCfbFunc(NUScTask*); /* extern */
void __initialize_song_mem(); /* extern */
void __set_obPtrPtrDisplayList(Gfx**); /* extern */
void func_80070C60(s32*, s32); /* extern */
@ -264,11 +264,11 @@ s32 func_80072944(void) {
INCLUDE_ASM(const s32, "main", __calls_copy_controller_data);
/* 347C 8007307C */
void gfxSwapCfbFunc(void** buffers)
void gfxSwapCfbFunc(NUScTask* task)
{
u8 prev;
D_800C4BB8 = buffers[3];
D_800C4BB8 = task->framebuffer;
prev = __reset_compared_osTvType();
if (prev == OS_TV_TYPE_MPAL)
@ -305,7 +305,7 @@ void gfxSwapCfbFunc(void** buffers)
if (prev != OS_TV_TYPE_PAL)
osViSetSpecialFeatures(OS_VI_DIVOT_ON | OS_VI_DITHER_FILTER_ON | OS_VI_GAMMA_OFF | OS_VI_GAMMA_DITHER_OFF);
osViSwapBuffer(buffers[3]);
osViSwapBuffer(task->framebuffer);
}
/* 3564 80073164 */