From 33d37c4963568d20e6822e1e5531d4c6c0d5aa9b Mon Sep 17 00:00:00 2001 From: gijs Date: Fri, 20 Oct 2023 16:52:32 +0200 Subject: [PATCH] Fix definition of `nuGfxSwapCfb` --- include/nu/nusys.h | 4 ++-- src/_ob_painful_roll.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/nu/nusys.h b/include/nu/nusys.h index 95d43c0..09ecbda 100644 --- a/include/nu/nusys.h +++ b/include/nu/nusys.h @@ -467,7 +467,7 @@ typedef void (*NUScPreNMIFunc)(void); /* Pointer to PRENMI callback function */ typedef void (*NUGfxFunc)(u32); /* Pointer to the GFX retrace callback function */ typedef void (*NUGfxPreNMIFunc)(void); /* Pointer to the GFX PRENMI callback function */ -typedef void (*NUGfxSwapCfbFunc)(void*);/* Pointer to the SWAPBUF callback function */ +typedef void (*NUGfxSwapCfbFunc)(NUScTask*);/* Pointer to the SWAPBUF callback function */ typedef void (*NUGfxTaskEndFunc)(void*);/* Pointer to the TASKEND callback function */ typedef void (*NUContReadFunc)(u32); /* Pointer to the Controller end-read */ /* callback function */ @@ -787,7 +787,7 @@ extern void nuGfxFuncSet(NUGfxFunc func); extern void nuGfxPreNMIFuncSet(NUGfxPreNMIFunc func); extern void nuGfxSwapCfbFuncSet(NUGfxSwapCfbFunc func); extern void nuGfxSetCfb(u16** framebuf, u32 framebufnum); -extern void nuGfxSwapCfb(void* framebuffer); +extern void nuGfxSwapCfb(NUScTask* task); extern void nuGfxTaskEndFuncSet(NUGfxTaskEndFunc func); extern void nuGfxTaskAllEndWait(void); diff --git a/src/_ob_painful_roll.c b/src/_ob_painful_roll.c index 9f74a1c..9c5514e 100644 --- a/src/_ob_painful_roll.c +++ b/src/_ob_painful_roll.c @@ -3,7 +3,7 @@ #include "nu/nusys.h" /* 1B510 8008B110 */ -void nuGfxSwapCfb(void* framebuffer) { - osViSwapBuffer(framebuffer); +void nuGfxSwapCfb(NUScTask* task) { + osViSwapBuffer(task->framebuffer); }