1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-01-14 20:27:13 +00:00

Use OS_VI_ defines instead of hex

This commit is contained in:
Dragorn421 2021-09-21 10:00:55 +02:00
parent d71cf60c14
commit 038968ea9a
No known key found for this signature in database
GPG key ID: C182A3A3996E8201
3 changed files with 6 additions and 6 deletions

View file

@ -51,7 +51,7 @@ void Idle_ThreadEntry(void* arg) {
osCreateViManager(OS_PRIORITY_VIMGR);
gViConfigFeatures = 0x42;
gViConfigFeatures = OS_VI_GAMMA_OFF | OS_VI_DITHER_FILTER_ON;
gViConfigXScale = 1.0f;
gViConfigYScale = 1.0f;

View file

@ -894,7 +894,7 @@ void Fault_CommitFB() {
u16* fb;
osViSetYScale(1.0f);
osViSetMode(&osViModeNtscLan1);
osViSetSpecialFeatures(0x42); // gama_disable|dither_fliter_enable_aa_mode3_disable
osViSetSpecialFeatures(OS_VI_GAMMA_OFF | OS_VI_DITHER_FILTER_ON);
osViBlack(false);
if (sFaultStructPtr->fb) {

View file

@ -46,10 +46,10 @@ void Sched_SwapFrameBuffer(CfbInfo* cfbInfo) {
HREG(95) = 0xD;
}
if (HREG(80) == 0xD && HREG(81) == 2) {
osViSetSpecialFeatures(HREG(82) != 0 ? 1 : 2);
osViSetSpecialFeatures(HREG(83) != 0 ? 0x40 : 0x80);
osViSetSpecialFeatures(HREG(84) != 0 ? 0x4 : 0x8);
osViSetSpecialFeatures(HREG(85) != 0 ? 0x10 : 0x20);
osViSetSpecialFeatures(HREG(82) != 0 ? OS_VI_GAMMA_ON : OS_VI_GAMMA_OFF);
osViSetSpecialFeatures(HREG(83) != 0 ? OS_VI_DITHER_FILTER_ON : OS_VI_DITHER_FILTER_OFF);
osViSetSpecialFeatures(HREG(84) != 0 ? OS_VI_GAMMA_DITHER_ON : OS_VI_GAMMA_DITHER_OFF);
osViSetSpecialFeatures(HREG(85) != 0 ? OS_VI_DIVOT_ON : OS_VI_DIVOT_OFF);
}
}
cfbInfo->unk_10 = 0;