summaryrefslogtreecommitdiff
path: root/src/libultra/io/viblack.c
blob: 7866f3fc9dbf54402eb6731c9f987daf37c07020 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "ultra64.h"
#include "ultra64/viint.h"

void osViBlack(u8 active) {
    register u32 prevInt = __osDisableInt();

    if (active) {
        __osViNext->state |= VI_STATE_BLACK;
    } else {
        __osViNext->state &= ~VI_STATE_BLACK;
    }
    __osRestoreInt(prevInt);
}