Fix definition of `nuGfxSwapCfb`
This commit is contained in:
parent
050d7e737d
commit
33d37c4963
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
#include "nu/nusys.h"
|
||||
|
||||
/* 1B510 8008B110 */
|
||||
void nuGfxSwapCfb(void* framebuffer) {
|
||||
osViSwapBuffer(framebuffer);
|
||||
void nuGfxSwapCfb(NUScTask* task) {
|
||||
osViSwapBuffer(task->framebuffer);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue