summaryrefslogtreecommitdiffstats
path: root/win/C#/Functions/Common.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2008-09-11 21:34:05 +0000
committersr55 <[email protected]>2008-09-11 21:34:05 +0000
commite8eecb6a769f4ab46b6820ff642c9b817c1c5e11 (patch)
tree06c306e577560d6548cee9e8bc66b55d04656c6d /win/C#/Functions/Common.cs
parent3542367d63f7fb4d443645e5a61ff60ae709382b (diff)
WinGui:
- Slider control for deblock. - Fix: Load normal preset if userdefault setting string is empty. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1690 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Functions/Common.cs')
-rw-r--r--win/C#/Functions/Common.cs18
1 files changed, 12 insertions, 6 deletions
diff --git a/win/C#/Functions/Common.cs b/win/C#/Functions/Common.cs
index 96c56a856..7b3e36fc9 100644
--- a/win/C#/Functions/Common.cs
+++ b/win/C#/Functions/Common.cs
@@ -135,11 +135,17 @@ namespace Handbrake.Functions
else
mainWindow.check_detelecine.CheckState = CheckState.Unchecked;
-
- if (presetQuery.DeBlock == true)
- mainWindow.check_deblock.CheckState = CheckState.Checked;
+ if (presetQuery.DeBlock != 0)
+ {
+ mainWindow.slider_deblock.Value = presetQuery.DeBlock;
+ mainWindow.lbl_deblockVal.Text = presetQuery.DeBlock.ToString();
+ }
else
- mainWindow.check_deblock.CheckState = CheckState.Unchecked;
+ {
+ mainWindow.slider_deblock.Value = 0;
+ mainWindow.lbl_deblockVal.Text = "0";
+ }
+
if (presetQuery.Anamorphic == true)
@@ -573,8 +579,8 @@ namespace Handbrake.Functions
else if (mainWindow.drp_anamorphic.SelectedIndex == 2)
query += " -P ";
- if (mainWindow.check_deblock.Checked)
- query += " --deblock";
+ if (mainWindow.slider_deblock.Value != 0)
+ query += " --deblock=" + mainWindow.slider_deblock.Value;
if (mainWindow.check_detelecine.Checked)
query += " --detelecine";