diff options
| author | Ac_K <Acoustik666@gmail.com> | 2020-12-01 21:44:04 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-01 21:44:04 +0100 |
| commit | a04a1b663d71b861e26f3bf70e8dba8b828f33ea (patch) | |
| tree | bbfc09d55aa93e9716207f21e1f6e5ac597d1ed9 | |
| parent | 7b66cb0d9051cab581df6853f11e87ed115da6c3 (diff) | |
config: Fix MaxAnisotropy value parsing (#1764)
| -rw-r--r-- | Ryujinx.Common/Configuration/ConfigurationState.cs | 2 | ||||
| -rw-r--r-- | 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 915cb77e..2d725149 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 f6eb8e51..100246bc 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; |
