From 1cb3cd550970f86e167f94d3eda21923fc9b9852 Mon Sep 17 00:00:00 2001 From: BountyChocolate123456 <101743444+BountyChocolate123456@users.noreply.github.com> Date: Sat, 11 Jun 2022 17:07:13 +0100 Subject: #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> --- soh/src/code/shrink_window.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'soh/src/code') 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); } -- cgit v1.2.3