summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorsr55 <[email protected]>2010-08-15 19:39:21 +0000
committersr55 <[email protected]>2010-08-15 19:39:21 +0000
commit45cbc5f31a333bcef3c48f6572fb2af3c59a1f0b (patch)
treeef72cf6f50727a92e6197deaa3b8b883c38f0427 /win
parenta4e38531b7bba915225faa33efb838ed9cac401c (diff)
WinGui:
- Fix some culture issues in the x264 window. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3478 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win')
-rw-r--r--win/C#/Controls/x264Panel.cs15
1 files changed, 9 insertions, 6 deletions
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;
/// <summary>
@@ -18,6 +19,8 @@ namespace Handbrake.Controls
* at some point.
*/
+ private CultureInfo culture = CultureInfo.CreateSpecificCulture("en-US");
+
/// <summary>
/// Initializes a new instance of the <see cref="x264Panel"/> 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;
}