From 0f39352a1d6aea7ae652fd23c926d853856013ef Mon Sep 17 00:00:00 2001 From: gijs Date: Fri, 24 May 2024 15:05:06 +0200 Subject: [PATCH] Change typing of `gfxSwapCfbFunc` to be correct --- src/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.c b/src/main.c index d899c02..caf5112 100644 --- a/src/main.c +++ b/src/main.c @@ -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 */