From 7139bd97551c5f8a521295599f0bf294a00cd3dd Mon Sep 17 00:00:00 2001 From: sr55 Date: Sun, 4 Jul 2010 17:50:37 +0000 Subject: WinGui: - Next step in the new Add Presets Window. Now added Picture Size modes "None" and "Source Maximum". Note cropping values are stored with "Source Maximum" if custom crop is selected. Also included option to include filter settings. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3425 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/C#/Controls/PictureSettings.cs | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'win/C#/Controls/PictureSettings.cs') diff --git a/win/C#/Controls/PictureSettings.cs b/win/C#/Controls/PictureSettings.cs index 1528d07b7..e0319a690 100644 --- a/win/C#/Controls/PictureSettings.cs +++ b/win/C#/Controls/PictureSettings.cs @@ -81,11 +81,16 @@ namespace Handbrake.Controls /// public void SetPresetCropWarningLabel(Preset selectedPreset) { - lbl_presetCropWarning.Visible = true; - if (selectedPreset != null && selectedPreset.PictureSettings == false) - lbl_presetCropWarning.Visible = false; - else if (selectedPreset == null) + if (this.check_customCrop.Checked) + { + lbl_presetCropWarning.Visible = true; + if (selectedPreset != null && selectedPreset.CropSettings == false) lbl_presetCropWarning.Visible = false; + else if (selectedPreset == null) lbl_presetCropWarning.Visible = false; + } + else + { lbl_presetCropWarning.Visible = false; + } } /// @@ -97,7 +102,7 @@ namespace Handbrake.Controls lbl_src_res.Text = sourceTitle.Resolution.Width + " x " + sourceTitle.Resolution.Height; // Set the Recommended Cropping values, but only if a preset doesn't have hard set picture settings. - if ((CurrentlySelectedPreset != null && CurrentlySelectedPreset.PictureSettings == false) || CurrentlySelectedPreset == null) + if ((CurrentlySelectedPreset != null && CurrentlySelectedPreset.CropSettings == false) || CurrentlySelectedPreset == null) { crop_top.Value = GetCropMod2Clean(sourceTitle.AutoCropDimensions.Top); crop_bottom.Value = GetCropMod2Clean(sourceTitle.AutoCropDimensions.Bottom); -- cgit v1.2.3