mirror of
https://github.com/zeldaret/oot.git
synced 2025-01-15 12:47:04 +00:00
Use OS_VI_
defines instead of hex
This commit is contained in:
parent
d71cf60c14
commit
038968ea9a
3 changed files with 6 additions and 6 deletions
|
@ -51,7 +51,7 @@ void Idle_ThreadEntry(void* arg) {
|
||||||
|
|
||||||
osCreateViManager(OS_PRIORITY_VIMGR);
|
osCreateViManager(OS_PRIORITY_VIMGR);
|
||||||
|
|
||||||
gViConfigFeatures = 0x42;
|
gViConfigFeatures = OS_VI_GAMMA_OFF | OS_VI_DITHER_FILTER_ON;
|
||||||
gViConfigXScale = 1.0f;
|
gViConfigXScale = 1.0f;
|
||||||
gViConfigYScale = 1.0f;
|
gViConfigYScale = 1.0f;
|
||||||
|
|
||||||
|
|
|
@ -894,7 +894,7 @@ void Fault_CommitFB() {
|
||||||
u16* fb;
|
u16* fb;
|
||||||
osViSetYScale(1.0f);
|
osViSetYScale(1.0f);
|
||||||
osViSetMode(&osViModeNtscLan1);
|
osViSetMode(&osViModeNtscLan1);
|
||||||
osViSetSpecialFeatures(0x42); // gama_disable|dither_fliter_enable_aa_mode3_disable
|
osViSetSpecialFeatures(OS_VI_GAMMA_OFF | OS_VI_DITHER_FILTER_ON);
|
||||||
osViBlack(false);
|
osViBlack(false);
|
||||||
|
|
||||||
if (sFaultStructPtr->fb) {
|
if (sFaultStructPtr->fb) {
|
||||||
|
|
|
@ -46,10 +46,10 @@ void Sched_SwapFrameBuffer(CfbInfo* cfbInfo) {
|
||||||
HREG(95) = 0xD;
|
HREG(95) = 0xD;
|
||||||
}
|
}
|
||||||
if (HREG(80) == 0xD && HREG(81) == 2) {
|
if (HREG(80) == 0xD && HREG(81) == 2) {
|
||||||
osViSetSpecialFeatures(HREG(82) != 0 ? 1 : 2);
|
osViSetSpecialFeatures(HREG(82) != 0 ? OS_VI_GAMMA_ON : OS_VI_GAMMA_OFF);
|
||||||
osViSetSpecialFeatures(HREG(83) != 0 ? 0x40 : 0x80);
|
osViSetSpecialFeatures(HREG(83) != 0 ? OS_VI_DITHER_FILTER_ON : OS_VI_DITHER_FILTER_OFF);
|
||||||
osViSetSpecialFeatures(HREG(84) != 0 ? 0x4 : 0x8);
|
osViSetSpecialFeatures(HREG(84) != 0 ? OS_VI_GAMMA_DITHER_ON : OS_VI_GAMMA_DITHER_OFF);
|
||||||
osViSetSpecialFeatures(HREG(85) != 0 ? 0x10 : 0x20);
|
osViSetSpecialFeatures(HREG(85) != 0 ? OS_VI_DIVOT_ON : OS_VI_DIVOT_OFF);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
cfbInfo->unk_10 = 0;
|
cfbInfo->unk_10 = 0;
|
||||||
|
|
Loading…
Reference in a new issue