diff options
author | sr55 <[email protected]> | 2012-02-18 20:46:50 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2012-02-18 20:46:50 +0000 |
commit | be861eb1e625b3e903d76bf60cdfb4bae8f8b1df (patch) | |
tree | c09cf6ea8de5d8828322f27b18c27b12efc8be43 /win/CS/Controls | |
parent | d3d7b47d15398fca3d8594b7c117fcf541548681 (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/Controls')
-rw-r--r-- | win/CS/Controls/PictureSettings.cs | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/win/CS/Controls/PictureSettings.cs b/win/CS/Controls/PictureSettings.cs index 7684c9ad6..8e45b9778 100644 --- a/win/CS/Controls/PictureSettings.cs +++ b/win/CS/Controls/PictureSettings.cs @@ -26,6 +26,7 @@ namespace Handbrake.Controls private bool preventChangingDisplayWidth;
private double cachedDar;
private Title sourceTitle;
+ private Size presetMaximumResolution;
/// <summary>
/// Initializes a new instance of the <see cref="PictureSettings"/> class.
@@ -67,11 +68,27 @@ namespace Handbrake.Controls /// </summary>
public Preset CurrentlySelectedPreset { get; set; }
+ public bool SizeSet { get; set; }
+
/// <summary>
/// Gets or sets the maximum allowable size for the encoded resolution. Set a value to
/// "0" if the maximum does not matter.
/// </summary>
- public Size PresetMaximumResolution { get; set; }
+ public Size PresetMaximumResolution
+ {
+ get
+ {
+ return this.presetMaximumResolution;
+ }
+ set
+ {
+ this.presetMaximumResolution = value;
+ if (presetMaximumResolution == new Size(0, 0) && !SizeSet && this.sourceTitle != null)
+ {
+ text_width.Value = this.sourceTitle.Resolution.Width;
+ }
+ }
+ }
/// <summary>
/// Set the Preset Crop Warning Label
|