From a04a1b663d71b861e26f3bf70e8dba8b828f33ea Mon Sep 17 00:00:00 2001 From: Ac_K Date: Tue, 1 Dec 2020 21:44:04 +0100 Subject: [PATCH] config: Fix MaxAnisotropy value parsing (#1764) --- Ryujinx.Common/Configuration/ConfigurationState.cs | 2 +- Ryujinx/Ui/SettingsWindow.cs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Ryujinx.Common/Configuration/ConfigurationState.cs b/Ryujinx.Common/Configuration/ConfigurationState.cs index 915cb77ebe..2d7251494b 100644 --- a/Ryujinx.Common/Configuration/ConfigurationState.cs +++ b/Ryujinx.Common/Configuration/ConfigurationState.cs @@ -448,7 +448,7 @@ namespace Ryujinx.Configuration { Graphics.ResScale.Value = 1; Graphics.ResScaleCustom.Value = 1.0f; - Graphics.MaxAnisotropy.Value = -1; + Graphics.MaxAnisotropy.Value = -1.0f; Graphics.ShadersDumpPath.Value = ""; Logger.EnableDebug.Value = false; Logger.EnableStub.Value = true; diff --git a/Ryujinx/Ui/SettingsWindow.cs b/Ryujinx/Ui/SettingsWindow.cs index f6eb8e5138..100246bc46 100644 --- a/Ryujinx/Ui/SettingsWindow.cs +++ b/Ryujinx/Ui/SettingsWindow.cs @@ -1,14 +1,14 @@ using Gtk; using Ryujinx.Audio; -using Ryujinx.Configuration; using Ryujinx.Common.Configuration; using Ryujinx.Common.Configuration.Hid; +using Ryujinx.Configuration; using Ryujinx.Configuration.System; -using Ryujinx.HLE.HOS.Services.Time.TimeZone; using Ryujinx.HLE.FileSystem; +using Ryujinx.HLE.HOS.Services.Time.TimeZone; using System; using System.Collections.Generic; -using System.Diagnostics; +using System.Globalization; using System.IO; using System.Reflection; using System.Threading.Tasks; @@ -414,7 +414,7 @@ namespace Ryujinx.Ui ConfigurationState.Instance.Graphics.ShadersDumpPath.Value = _graphicsShadersDumpPath.Buffer.Text; ConfigurationState.Instance.Ui.GameDirs.Value = gameDirs; ConfigurationState.Instance.System.FsGlobalAccessLogMode.Value = (int)_fsLogSpinAdjustment.Value; - ConfigurationState.Instance.Graphics.MaxAnisotropy.Value = float.Parse(_anisotropy.ActiveId); + ConfigurationState.Instance.Graphics.MaxAnisotropy.Value = float.Parse(_anisotropy.ActiveId, CultureInfo.InvariantCulture); ConfigurationState.Instance.Graphics.ResScale.Value = int.Parse(_resScaleCombo.ActiveId); ConfigurationState.Instance.Graphics.ResScaleCustom.Value = resScaleCustom;