c: __scHandleRDP

This commit is contained in:
Mittenz
2020-08-19 16:06:11 -05:00
parent 0c0166ce46
commit eb8876d024
19 changed files with 113 additions and 126 deletions
+3 -3
View File
@@ -3,14 +3,14 @@
#include "libultra_internal.h"
extern OSViContext *D_800E4874;
extern OSViContext *__osViNext;
// TODO: name magic constants
void osViBlack(u8 active) {
register u32 int_disabled = __osDisableInt();
if (active) {
D_800E4874->unk00 |= 0x20;
__osViNext->unk00 |= 0x20;
} else {
D_800E4874->unk00 &= ~0x20;
__osViNext->unk00 &= ~0x20;
}
__osRestoreInt(int_disabled);
}
+3 -3
View File
@@ -3,11 +3,11 @@
#include "libultra_internal.h"
extern OSViContext* D_800E4874;
extern OSViContext* __osViNext;
void osViSwapBuffer(void* frameBufPtr){
u32 saveMask = __osDisableInt();
D_800E4874->buffer = frameBufPtr;
D_800E4874->unk00 |= 0x10;
__osViNext->buffer = frameBufPtr;
__osViNext->unk00 |= 0x10;
__osRestoreInt(saveMask);
}