diff options
| author | BountyChocolate123456 <101743444+BountyChocolate123456@users.noreply.github.com> | 2022-06-11 17:07:13 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-11 12:07:13 -0400 |
| commit | 1cb3cd550970f86e167f94d3eda21923fc9b9852 (patch) | |
| tree | b4db9cd9979cfc60b07401d6a6bf6b4c4db5fbd9 /soh/src/code | |
| parent | 1feef9d5d689f9c1c16604ddc8ab25540daa2ee6 (diff) | |
#243 Add option to disable black bars letterboxes (#376)
* #243 Add option to disable black bars letterboxes
* #243 Add option to disable black bars letterboxes
* Update libultraship/libultraship/SohImGuiImpl.cpp
* Update libultraship/libultraship/SohImGuiImpl.cpp
* Update libultraship/libultraship/SohImGuiImpl.cpp
Co-authored-by: Ada <60364512+GreatArgorath@users.noreply.github.com>
* Add new line
Co-authored-by: Ada <60364512+GreatArgorath@users.noreply.github.com>
Diffstat (limited to 'soh/src/code')
| -rw-r--r-- | soh/src/code/shrink_window.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/soh/src/code/shrink_window.c b/soh/src/code/shrink_window.c index cc68129e2..ee7822df0 100644 --- a/soh/src/code/shrink_window.c +++ b/soh/src/code/shrink_window.c @@ -6,6 +6,10 @@ s32 sShrinkWindowVal = 0; s32 sShrinkWindowCurrentVal = 0; void ShrinkWindow_SetVal(s32 value) { + if (CVar_GetS32("gDisableBlackBars", 0)) { + sShrinkWindowVal = 0; + return; + } if (HREG(80) == 0x13 && HREG(81) == 1) { osSyncPrintf("shrink_window_setval(%d)\n", value); } @@ -17,6 +21,10 @@ u32 ShrinkWindow_GetVal(void) { } void ShrinkWindow_SetCurrentVal(s32 currentVal) { + if (CVar_GetS32("gDisableBlackBars", 0)) { + sShrinkWindowCurrentVal = 0; + return; + } if (HREG(80) == 0x13 && HREG(81) == 1) { osSyncPrintf("shrink_window_setnowval(%d)\n", currentVal); } |
