1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-07-18 05:44:53 +00:00

[iQue] Match osViSetMode (#2404)

This commit is contained in:
Tharo 2025-01-07 05:21:25 +00:00 committed by GitHub
parent c6cceea85b
commit aaf9c939a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 10 additions and 2 deletions

View file

@ -4,6 +4,12 @@
void osViSetMode(OSViMode* mode) {
register u32 prevInt = __osDisableInt();
#ifdef BBPLAYER
if (__osBbIsBb) {
mode->comRegs.ctrl &= ~VI_CTRL_PIXEL_ADV(2);
}
#endif
__osViNext->modep = mode;
__osViNext->state = VI_STATE_MODE_SET;
__osViNext->features = __osViNext->modep->comRegs.ctrl;