diff options
author | sr55 <[email protected]> | 2009-08-10 19:59:27 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2009-08-10 19:59:27 +0000 |
commit | fd88b574a2d980491a693e6d8747669a8507a031 (patch) | |
tree | f7b40af800e0a046bcfaea195ae1da9117068b50 /win/C#/Functions/PresetLoader.cs | |
parent | 79e381141a579d027f8f37aa992b9c2a710dd20c (diff) |
WinGui:
- Changing the CQ step for the quality slider when using x264 no longer requires a program restart.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2760 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Functions/PresetLoader.cs')
-rw-r--r-- | win/C#/Functions/PresetLoader.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/win/C#/Functions/PresetLoader.cs b/win/C#/Functions/PresetLoader.cs index 136641474..4345f6f9a 100644 --- a/win/C#/Functions/PresetLoader.cs +++ b/win/C#/Functions/PresetLoader.cs @@ -151,8 +151,10 @@ namespace Handbrake.Functions mainWindow.radio_cq.Checked = true;
if (presetQuery.VideoEncoder == "H.264 (x264)")
{
+ double cqStep;
+ double.TryParse(Properties.Settings.Default.x264cqstep, out cqStep);
int value;
- double x264step = Properties.Settings.Default.x264cqstep;
+ double x264step = cqStep;
double presetValue = presetQuery.VideoQuality;
double x = 51 / x264step;
@@ -169,7 +171,8 @@ namespace Handbrake.Functions double val = Math.Round(calculated, 0);
int.TryParse(val.ToString(), out value);
}
- mainWindow.slider_videoQuality.Value = value;
+ if (value < mainWindow.slider_videoQuality.Maximum)
+ mainWindow.slider_videoQuality.Value = value;
}
else
{
|