From 45cbc5f31a333bcef3c48f6572fb2af3c59a1f0b Mon Sep 17 00:00:00 2001 From: sr55 Date: Sun, 15 Aug 2010 19:39:21 +0000 Subject: WinGui: - Fix some culture issues in the x264 window. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3478 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/C#/Controls/x264Panel.cs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'win/C#/Controls') diff --git a/win/C#/Controls/x264Panel.cs b/win/C#/Controls/x264Panel.cs index 1be389376..b15bf195d 100644 --- a/win/C#/Controls/x264Panel.cs +++ b/win/C#/Controls/x264Panel.cs @@ -6,6 +6,7 @@ namespace Handbrake.Controls { using System; + using System.Globalization; using System.Windows.Forms; /// @@ -18,6 +19,8 @@ namespace Handbrake.Controls * at some point. */ + private CultureInfo culture = CultureInfo.CreateSpecificCulture("en-US"); + /// /// Initializes a new instance of the class. /// Initializes a new instance of the x264 panel user control @@ -468,7 +471,7 @@ namespace Handbrake.Controls else { double value = slider_adaptiveQuantStrength.Value * 0.1; - string aqs = value.ToString("f1"); + string aqs = value.ToString("f1", culture); thisOpt = "aq-strength=" + aqs; } } @@ -481,8 +484,8 @@ namespace Handbrake.Controls double psyrd = slider_psyrd.Value * 0.1; double psytre = slider_psytrellis.Value * 0.05; - string rd = psyrd.ToString("f2"); - string rt = psytre.ToString("f2"); + string rd = psyrd.ToString("f2", culture); + string rt = psytre.ToString("f2", culture); thisOpt = "psy-rd=" + rd + "," + rt; } @@ -771,7 +774,7 @@ namespace Handbrake.Controls else { double value = slider_adaptiveQuantStrength.Value * 0.1; - string aqs = value.ToString("f1"); + string aqs = value.ToString("f1", culture); query += colon + "aq-strength=" + aqs; } } @@ -784,8 +787,8 @@ namespace Handbrake.Controls double psyrd = slider_psyrd.Value * 0.1; double psytre = slider_psytrellis.Value * 0.05; - string rd = psyrd.ToString("f1"); - string rt = psytre.ToString("f2"); + string rd = psyrd.ToString("f1", culture); + string rt = psytre.ToString("f2", culture); query += colon + "psy-rd=" + rd + "," + rt; } -- cgit v1.2.3