summaryrefslogtreecommitdiffstats
path: root/win/C#/frmMain.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2010-04-09 19:56:18 +0000
committersr55 <[email protected]>2010-04-09 19:56:18 +0000
commit308a8ae86210c5d680a01fc4e0336af41ef479c4 (patch)
treed1819426d0d60356b6ab2b9a46d77222a619dd07 /win/C#/frmMain.cs
parent54fb83612cd94c2f48ba8dbc16035f7e66a49fc2 (diff)
WinGui:
- Clean up a switch statement that wasn't needed git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3215 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmMain.cs')
-rw-r--r--win/C#/frmMain.cs21
1 files changed, 2 insertions, 19 deletions
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs
index 5f8cd4ecd..7baa1fcf8 100644
--- a/win/C#/frmMain.cs
+++ b/win/C#/frmMain.cs
@@ -1434,29 +1434,12 @@ 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;
+
+ slider_videoQuality.Maximum = (int)(51/Properties.Settings.Default.x264cqstep);
- switch (Properties.Settings.Default.x264cqstep.ToString(culture))
- {
- 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;
- }
if (value < slider_videoQuality.Maximum)
slider_videoQuality.Value = slider_videoQuality.Maximum - (int)value;