diff options
author | sr55 <[email protected]> | 2009-08-29 21:08:50 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2009-08-29 21:08:50 +0000 |
commit | 70a9464be721381abbd87792abeffe5a57f5f33e (patch) | |
tree | d6b8d2eaf0e131b6786879dd990f117a5d25f52d /win/C#/Functions | |
parent | fab46b2a994d8d60980e5474ee8a7ede5e0742ca (diff) |
WinGui:
- Fix a nasty culture issue with the Video Quality slider. Should now work correctly for systems which represent floats as 1,25 instead of 1.25
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2791 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Functions')
-rw-r--r-- | win/C#/Functions/PresetLoader.cs | 4 | ||||
-rw-r--r-- | win/C#/Functions/QueryGenerator.cs | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/win/C#/Functions/PresetLoader.cs b/win/C#/Functions/PresetLoader.cs index 90f16f658..fae48ee46 100644 --- a/win/C#/Functions/PresetLoader.cs +++ b/win/C#/Functions/PresetLoader.cs @@ -151,8 +151,7 @@ namespace Handbrake.Functions mainWindow.radio_cq.Checked = true;
if (presetQuery.VideoEncoder == "H.264 (x264)")
{
- double cqStep;
- double.TryParse(Properties.Settings.Default.x264cqstep, out cqStep);
+ double cqStep = Properties.Settings.Default.x264cqstep;
int value;
double x264step = cqStep;
double presetValue = presetQuery.VideoQuality;
@@ -184,7 +183,6 @@ namespace Handbrake.Functions mainWindow.check_2PassEncode.CheckState = presetQuery.TwoPass ? CheckState.Checked : CheckState.Unchecked;
-
mainWindow.drp_videoFramerate.Text = presetQuery.VideoFramerate;
mainWindow.check_turbo.CheckState = presetQuery.TurboFirstPass ? CheckState.Checked : CheckState.Unchecked;
diff --git a/win/C#/Functions/QueryGenerator.cs b/win/C#/Functions/QueryGenerator.cs index 58e59cd70..4d0033415 100644 --- a/win/C#/Functions/QueryGenerator.cs +++ b/win/C#/Functions/QueryGenerator.cs @@ -192,9 +192,7 @@ namespace Handbrake.Functions // Video Quality Setting
if (mainWindow.radio_cq.Checked)
{
- double cqStep;
- double.TryParse(Properties.Settings.Default.x264cqstep, out cqStep);
-
+ double cqStep = Properties.Settings.Default.x264cqstep;
double value;
switch (mainWindow.drp_videoEncoder.Text)
{
|