Fix definition of `nuGfxSwapCfb`

This commit is contained in:
gijs 2023-10-20 16:52:32 +02:00
parent 050d7e737d
commit 33d37c4963
2 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -3,7 +3,7 @@
#include "nu/nusys.h"
/* 1B510 8008B110 */
void nuGfxSwapCfb(void* framebuffer) {
osViSwapBuffer(framebuffer);
void nuGfxSwapCfb(NUScTask* task) {
osViSwapBuffer(task->framebuffer);
}