summaryrefslogtreecommitdiffstats
path: root/win/C#/Functions/QueryGenerator.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2009-06-28 11:38:35 +0000
committersr55 <[email protected]>2009-06-28 11:38:35 +0000
commit09c0bef2eed5ce0079e8f8b6409bc8fb78e3c0fa (patch)
tree8c19143241a318c1d7bf30b6aa13a2f1c88a8e8c /win/C#/Functions/QueryGenerator.cs
parent2cb0e60451671090f0dfc419da79f42cbd0f87a6 (diff)
WinGui:
- Attempt 2 at fixing culture issues. Thanks to zhango git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2638 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Functions/QueryGenerator.cs')
-rw-r--r--win/C#/Functions/QueryGenerator.cs6
1 files changed, 2 insertions, 4 deletions
diff --git a/win/C#/Functions/QueryGenerator.cs b/win/C#/Functions/QueryGenerator.cs
index da44e6076..85e76f57b 100644
--- a/win/C#/Functions/QueryGenerator.cs
+++ b/win/C#/Functions/QueryGenerator.cs
@@ -222,12 +222,10 @@ namespace Handbrake.Functions
query += " -q " + value.ToString(new CultureInfo("en-US"));
break;
case "H.264 (x264)":
- double divided;
CultureInfo culture = CultureInfo.CreateSpecificCulture("en-US");
- double.TryParse(Properties.Settings.Default.x264cqstep.ToString(culture), out divided);
- value = 51 - mainWindow.slider_videoQuality.Value * divided;
+ value = 51 - mainWindow.slider_videoQuality.Value * Properties.Settings.Default.x264cqstep;
value = Math.Round(value, 2);
- query += " -q " + value.ToString(new CultureInfo("en-US"));
+ query += " -q " + value.ToString(culture);
break;
case "VP3 (Theora)":
value = mainWindow.slider_videoQuality.Value;