summaryrefslogtreecommitdiffstats
path: root/win/C#
diff options
context:
space:
mode:
authorsr55 <[email protected]>2010-12-10 21:57:14 +0000
committersr55 <[email protected]>2010-12-10 21:57:14 +0000
commit9895dd6481c3399c38867c0a25a825a48728a63a (patch)
treec5a0fd64b45f207085b3e74f8194ad851feb60a2 /win/C#
parente2e3139761cc91c8a07faee991fd239d046acc03 (diff)
WinGui:
- Fix a culture issue in the x264 panel sliders. double.tryparse was failing to correctly parse doubles. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3704 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#')
-rw-r--r--win/C#/Controls/x264Panel.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/win/C#/Controls/x264Panel.cs b/win/C#/Controls/x264Panel.cs
index 5c9583757..7678539f2 100644
--- a/win/C#/Controls/x264Panel.cs
+++ b/win/C#/Controls/x264Panel.cs
@@ -348,7 +348,7 @@ namespace Handbrake.Controls
continue;
case "aq-strength":
float value;
- float.TryParse(optValue, out value);
+ float.TryParse(optValue, NumberStyles.Float, CultureInfo.InvariantCulture, out value);
int sliderValue;
int.TryParse((value * 10).ToString(), out sliderValue);
slider_adaptiveQuantStrength.Value = sliderValue;
@@ -363,9 +363,9 @@ namespace Handbrake.Controls
int val, val2;
// default psy-rd = 1 (10 for the slider)
- psyrd = double.TryParse(x[0], out psyrd) ? psyrd * 10 : 10.0;
+ psyrd = double.TryParse(x[0], NumberStyles.Float, CultureInfo.InvariantCulture, out psyrd) ? psyrd * 10 : 10.0;
// default psy-trellis = 0
- psytrellis = double.TryParse(x[1], out psytrellis) ? psytrellis * 20 : 0.0;
+ psytrellis = double.TryParse(x[1], NumberStyles.Float, CultureInfo.InvariantCulture, out psytrellis) ? psytrellis * 20 : 0.0;
int.TryParse(psyrd.ToString(), out val);
int.TryParse(psytrellis.ToString(), out val2);