summaryrefslogtreecommitdiffstats
path: root/win/C#/Functions/QueryGenerator.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2009-06-26 23:50:24 +0000
committersr55 <[email protected]>2009-06-26 23:50:24 +0000
commitedc5c3c50bbaf09eb2511f217a1228d901d54b55 (patch)
tree49c05ce249b69fc4912c19162759a34051c483c5 /win/C#/Functions/QueryGenerator.cs
parent4ac9a883b86e9d83a15a23f32090a2339ac1606a (diff)
WinGui:
- Temporary Fix for Quality slider getting reset to 0 on title or encoder change. Changing encoders may still cause a problem. - Much smaller splash screen. (Just in case any popup errors decide to hide behind it on launch) - Toolstrip now uses "Professional" appearance mode. On most systems it'll stand out more. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2633 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Functions/QueryGenerator.cs')
-rw-r--r--win/C#/Functions/QueryGenerator.cs7
1 files changed, 1 insertions, 6 deletions
diff --git a/win/C#/Functions/QueryGenerator.cs b/win/C#/Functions/QueryGenerator.cs
index 0394df6cf..a9a923a47 100644
--- a/win/C#/Functions/QueryGenerator.cs
+++ b/win/C#/Functions/QueryGenerator.cs
@@ -222,12 +222,7 @@ 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,
- NumberStyles.Number,
- culture,
- out divided);
+ double divided = Properties.Settings.Default.x264cqstep;
value = 51 - mainWindow.slider_videoQuality.Value * divided;
value = Math.Round(value, 2);
query += " -q " + value.ToString(new CultureInfo("en-US"));