Allow user to enter in commas as well as periods

Allow users to enter in commas in place of decimal points
This commit is contained in:
Christopher Merrill 2023-04-14 12:33:39 -05:00 committed by GitHub
parent 4c3f09644a
commit e92023e2b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -543,7 +543,7 @@ namespace Ryujinx.Ui.Windows
_directoryChanged = false; _directoryChanged = false;
} }
if (!float.TryParse(_resScaleText.Buffer.Text, out float resScaleCustom) || resScaleCustom <= 0.0f) if (!float.TryParse(_resScaleText.Buffer.Text.Replace(",","."), out float resScaleCustom) || resScaleCustom <= 0.0f)
{ {
resScaleCustom = 1.0f; resScaleCustom = 1.0f;
} }