fix display manager custom AR/size. broken by 45e0abe39d. fixes #1975

This commit is contained in:
zeromus 2020-05-04 00:37:12 -04:00
parent 4c7ade126c
commit 7ce9a56dda
1 changed files with 4 additions and 4 deletions

View File

@ -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))
{