From 7ce9a56dda5f01a5c134484dd368ade7ffb1ffc8 Mon Sep 17 00:00:00 2001 From: zeromus Date: Mon, 4 May 2020 00:37:12 -0400 Subject: [PATCH] fix display manager custom AR/size. broken by 45e0abe39dc45d22bc9a96a7326148b6864ab362. fixes #1975 --- src/BizHawk.Client.EmuHawk/config/DisplayConfig.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/BizHawk.Client.EmuHawk/config/DisplayConfig.cs b/src/BizHawk.Client.EmuHawk/config/DisplayConfig.cs index 62cff6de04..df139ae495 100644 --- a/src/BizHawk.Client.EmuHawk/config/DisplayConfig.cs +++ b/src/BizHawk.Client.EmuHawk/config/DisplayConfig.cs @@ -147,7 +147,7 @@ namespace BizHawk.Client.EmuHawk else if (rbUseCustomRatio.Checked) _config.DispManagerAR = EDispManagerAR.CustomRatio; - if (string.IsNullOrWhiteSpace(txtCustomARWidth.Text)) + if (!string.IsNullOrWhiteSpace(txtCustomARWidth.Text)) { if (int.TryParse(txtCustomARWidth.Text, out int dispCustomUserARWidth)) { @@ -159,7 +159,7 @@ namespace BizHawk.Client.EmuHawk _config.DispCustomUserARWidth = -1; } - if (string.IsNullOrWhiteSpace(txtCustomARHeight.Text)) + if (!string.IsNullOrWhiteSpace(txtCustomARHeight.Text)) { if (int.TryParse(txtCustomARHeight.Text, out int dispCustomUserARHeight)) { @@ -171,7 +171,7 @@ namespace BizHawk.Client.EmuHawk _config.DispCustomUserARHeight = -1; } - if (string.IsNullOrWhiteSpace(txtCustomARX.Text)) + if (!string.IsNullOrWhiteSpace(txtCustomARX.Text)) { if (float.TryParse(txtCustomARX.Text, out float dispCustomUserArx)) { @@ -183,7 +183,7 @@ namespace BizHawk.Client.EmuHawk _config.DispCustomUserArx = -1; } - if (string.IsNullOrWhiteSpace(txtCustomARY.Text)) + if (!string.IsNullOrWhiteSpace(txtCustomARY.Text)) { if (float.TryParse(txtCustomARY.Text, out float dispCustomUserAry)) {