summaryrefslogtreecommitdiffstats
path: root/win/C#/frmMain.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2010-04-09 20:08:54 +0000
committersr55 <[email protected]>2010-04-09 20:08:54 +0000
commit34d7b7d5daef1d22ab8061ebb46fea5a27a4c8fd (patch)
tree634ff18aa873df81fde8605925cc3121be63fda9 /win/C#/frmMain.cs
parent308a8ae86210c5d680a01fc4e0336af41ef479c4 (diff)
WinGui:
- Fix a few small issues with custom anamorphic preset loading. Thanks golgol7777 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3216 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmMain.cs')
-rw-r--r--win/C#/frmMain.cs23
1 files changed, 3 insertions, 20 deletions
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs
index 7baa1fcf8..a369543a1 100644
--- a/win/C#/frmMain.cs
+++ b/win/C#/frmMain.cs
@@ -1324,8 +1324,7 @@ namespace Handbrake
break;
case 2:
if (
- !Path.GetExtension(DVD_Save.FileName).Equals(".mkv",
- StringComparison.InvariantCultureIgnoreCase))
+ !Path.GetExtension(DVD_Save.FileName).Equals(".mkv", StringComparison.InvariantCultureIgnoreCase))
DVD_Save.FileName = DVD_Save.FileName.Replace(".mp4", ".mkv").Replace(".m4v", ".mkv");
break;
default:
@@ -1434,6 +1433,7 @@ namespace Handbrake
slider_videoQuality.Minimum = 0;
slider_videoQuality.TickFrequency = 1;
+ CultureInfo culture = CultureInfo.CreateSpecificCulture("en-US");
double cqStep = Properties.Settings.Default.x264cqstep;
double multiplier = 1.0 / cqStep;
double value = slider_videoQuality.Value * multiplier;
@@ -1487,24 +1487,7 @@ namespace Handbrake
double rfValue = 51.0 - slider_videoQuality.Value * cqStep;
// Change the maximum value for the slider
- switch (Properties.Settings.Default.x264cqstep.ToString(new CultureInfo("en-US")))
- {
- case "0.2":
- slider_videoQuality.Maximum = 255;
- break;
- case "0.25":
- slider_videoQuality.Maximum = 204;
- break;
- case "0.5":
- slider_videoQuality.Maximum = 102;
- break;
- case "1":
- slider_videoQuality.Maximum = 51;
- break;
- default:
- slider_videoQuality.Maximum = 51;
- break;
- }
+ slider_videoQuality.Maximum = (int)(51 / Properties.Settings.Default.x264cqstep);
// Reset the CQ slider to RF0
slider_videoQuality.Value = slider_videoQuality.Maximum;