diff options
author | sr55 <[email protected]> | 2011-11-04 23:02:19 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2011-11-04 23:02:19 +0000 |
commit | 4ec40322ea7ac15f645a6a056da99b43d6d2ac12 (patch) | |
tree | e908d1461f876d1c2ef984b3b9a30f4a344d2f0f /win/CS/Controls | |
parent | ed81068f87cbee3d68425e46178ec6dfae6b955e (diff) |
WinGui: Several more culture issue fixes.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4340 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/Controls')
-rw-r--r-- | win/CS/Controls/x264Panel.cs | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/win/CS/Controls/x264Panel.cs b/win/CS/Controls/x264Panel.cs index c7625d720..732ee2d4f 100644 --- a/win/CS/Controls/x264Panel.cs +++ b/win/CS/Controls/x264Panel.cs @@ -27,8 +27,6 @@ namespace Handbrake.Controls /// </summary>
private readonly IUserSettingService UserSettingService = ServiceManager.UserSettingService;
- 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
@@ -480,7 +478,7 @@ namespace Handbrake.Controls else
{
double value = slider_adaptiveQuantStrength.Value * 0.1;
- string aqs = value.ToString("f1", culture);
+ string aqs = value.ToString("f1", CultureInfo.InvariantCulture);
thisOpt = "aq-strength=" + aqs;
}
}
@@ -493,8 +491,8 @@ namespace Handbrake.Controls double psyrd = slider_psyrd.Value * 0.1;
double psytre = slider_psytrellis.Value * 0.05;
- string rd = psyrd.ToString("f2", culture);
- string rt = psytre.ToString("f2", culture);
+ string rd = psyrd.ToString("f2", CultureInfo.InvariantCulture);
+ string rt = psytre.ToString("f2", CultureInfo.InvariantCulture);
thisOpt = "psy-rd=" + rd + "," + rt;
}
@@ -783,7 +781,7 @@ namespace Handbrake.Controls else
{
double value = slider_adaptiveQuantStrength.Value * 0.1;
- string aqs = value.ToString("f1", culture);
+ string aqs = value.ToString("f1", CultureInfo.InvariantCulture);
query += colon + "aq-strength=" + aqs;
}
}
@@ -796,8 +794,8 @@ namespace Handbrake.Controls double psyrd = slider_psyrd.Value * 0.1;
double psytre = slider_psytrellis.Value * 0.05;
- string rd = psyrd.ToString("f1", culture);
- string rt = psytre.ToString("f2", culture);
+ string rd = psyrd.ToString("f1", CultureInfo.InvariantCulture);
+ string rt = psytre.ToString("f2", CultureInfo.InvariantCulture);
query += colon + "psy-rd=" + rd + "," + rt;
}
|