mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-11 12:05:09 -05:00
11 lines
229 B
C
11 lines
229 B
C
|
#include "global.h"
|
||
|
|
||
|
void osViSwapBuffer(void* vaddr) {
|
||
|
u32 prevInt = __osDisableInt();
|
||
|
|
||
|
__osViNext->buffer = vaddr;
|
||
|
__osViNext->state |= 0x10; // TODO: figure out what this flag means
|
||
|
|
||
|
__osRestoreInt(prevInt);
|
||
|
}
|