summaryrefslogtreecommitdiffstats
path: root/win/CS/Functions
diff options
context:
space:
mode:
authorsr55 <[email protected]>2012-02-18 20:46:50 +0000
committersr55 <[email protected]>2012-02-18 20:46:50 +0000
commitbe861eb1e625b3e903d76bf60cdfb4bae8f8b1df (patch)
treec09cf6ea8de5d8828322f27b18c27b12efc8be43 /win/CS/Functions
parentd3d7b47d15398fca3d8594b7c117fcf541548681 (diff)
WinGui: Quick hack to force width to update when changing preset for HD sources. (High Profile preset)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4455 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/Functions')
-rw-r--r--win/CS/Functions/PresetLoader.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/win/CS/Functions/PresetLoader.cs b/win/CS/Functions/PresetLoader.cs
index 47029c935..6aacfd9c5 100644
--- a/win/CS/Functions/PresetLoader.cs
+++ b/win/CS/Functions/PresetLoader.cs
@@ -147,28 +147,34 @@ namespace Handbrake.Functions
? CheckState.Checked
: CheckState.Unchecked;
+ bool sizeSet = false;
// Set the Width and height as Required.
if (presetQuery.Width.HasValue)
{
mainWindow.PictureSettings.text_width.Value = presetQuery.Width.Value;
+ sizeSet = true;
}
if (presetQuery.Height.HasValue)
{
mainWindow.PictureSettings.text_height.Value = presetQuery.Height.Value;
+ sizeSet = true;
}
// Max Width/Height override Width/Height
if (presetQuery.MaxWidth.HasValue)
{
mainWindow.PictureSettings.text_width.Value = presetQuery.MaxWidth.Value;
+ sizeSet = true;
}
if (presetQuery.MaxHeight.HasValue)
{
mainWindow.PictureSettings.text_height.Value = presetQuery.MaxHeight.Value;
+ sizeSet = true;
}
+ mainWindow.PictureSettings.SizeSet = sizeSet;
mainWindow.PictureSettings.PresetMaximumResolution = new Size(
presetQuery.MaxWidth.HasValue ? presetQuery.MaxWidth.Value : 0,
presetQuery.MaxHeight.HasValue ? presetQuery.MaxHeight.Value : 0);