From b0b82dde71b49b73bddd6c8aa8157ff5e8854917 Mon Sep 17 00:00:00 2001 From: Travis Date: Wed, 16 Jul 2025 21:43:00 -0600 Subject: [PATCH 1/2] move showHorizontalResField initialization --- soh/soh/SohGui/ResolutionEditor.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/soh/soh/SohGui/ResolutionEditor.cpp b/soh/soh/SohGui/ResolutionEditor.cpp index d33a7b43c..7782332bd 100644 --- a/soh/soh/SohGui/ResolutionEditor.cpp +++ b/soh/soh/SohGui/ResolutionEditor.cpp @@ -78,7 +78,7 @@ static float aspectRatioX; static float aspectRatioY; static int32_t verticalPixelCount; // Additional settings -static bool showHorizontalResField; +static bool showHorizontalResField = false; static int32_t horizontalPixelCount; // Disabling flags static bool disabled_everything; @@ -563,7 +563,6 @@ void UpdateResolutionVars() { verticalPixelCount = CVarGetInteger(CVAR_PREFIX_ADVANCED_RESOLUTION ".VerticalPixelCount", pixelCountPresets[item_pixelCount]); // Additional settings - showHorizontalResField = false; horizontalPixelCount = (verticalPixelCount / aspectRatioY) * aspectRatioX; // Disabling flags disabled_everything = !CVarGetInteger(CVAR_PREFIX_ADVANCED_RESOLUTION ".Enabled", 0); From 6c0c57c3056ecf31bec782a37f71095706089588 Mon Sep 17 00:00:00 2001 From: balloondude2 <55861555+balloondude2@users.noreply.github.com> Date: Thu, 17 Jul 2025 21:28:12 -0600 Subject: [PATCH 2/2] remove redundant assignment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Philip Dubé --- soh/soh/SohGui/ResolutionEditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/soh/soh/SohGui/ResolutionEditor.cpp b/soh/soh/SohGui/ResolutionEditor.cpp index 7782332bd..d3810f6a4 100644 --- a/soh/soh/SohGui/ResolutionEditor.cpp +++ b/soh/soh/SohGui/ResolutionEditor.cpp @@ -78,7 +78,7 @@ static float aspectRatioX; static float aspectRatioY; static int32_t verticalPixelCount; // Additional settings -static bool showHorizontalResField = false; +static bool showHorizontalResField; static int32_t horizontalPixelCount; // Disabling flags static bool disabled_everything;