summaryrefslogtreecommitdiffstats
path: root/win/C#/frmMain/PresetLoader.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2008-11-06 21:26:55 +0000
committersr55 <[email protected]>2008-11-06 21:26:55 +0000
commitc0a30f0be5aa54e8b19e04fb560e907319339a2f (patch)
tree27f237f1fb768184a0ff2d3ce68d258737bde61b /win/C#/frmMain/PresetLoader.cs
parent4187cbcfdad5d71657431f9b5d662942c5d9c8f5 (diff)
WinGui:
- Set's DRC to 1 by default. - Chapter Markers tab only enabled if it's a DVD source or ISO image. - -X and -Y options now parsed by the query parser. - Added a small hack to allow built-in presets to use -X and -Y and have the query generator correctly generate the query. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1898 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmMain/PresetLoader.cs')
-rw-r--r--win/C#/frmMain/PresetLoader.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/win/C#/frmMain/PresetLoader.cs b/win/C#/frmMain/PresetLoader.cs
index c42f8202e..e56ee4cbf 100644
--- a/win/C#/frmMain/PresetLoader.cs
+++ b/win/C#/frmMain/PresetLoader.cs
@@ -129,6 +129,21 @@ namespace Handbrake
mainWindow.text_height.Text = "";
}
+ // Set the public max width and max height varibles in frmMain
+ // These are used by the query generator to determine if it should use -X or -w / -Y or -h
+ if (presetQuery.MaxWidth != 0)
+ {
+ mainWindow.text_width.Text = presetQuery.MaxWidth.ToString();
+ mainWindow.maxWidth = presetQuery.MaxWidth;
+ }
+
+ if (presetQuery.MaxHeight != 0)
+ {
+ mainWindow.text_height.Text = presetQuery.MaxHeight.ToString();
+ mainWindow.maxHeight = presetQuery.MaxHeight;
+ }
+
+
#endregion
// Video Settings Tab