diff options
author | sr55 <[email protected]> | 2010-07-04 17:50:37 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2010-07-04 17:50:37 +0000 |
commit | 7139bd97551c5f8a521295599f0bf294a00cd3dd (patch) | |
tree | 075518b4ab1565c438fcd41b398263e60be96e99 /win/C#/Controls/PictureSettings.cs | |
parent | daec13f6144419aa5efdada8598500f2d48cefac (diff) |
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
Diffstat (limited to 'win/C#/Controls/PictureSettings.cs')
-rw-r--r-- | win/C#/Controls/PictureSettings.cs | 15 |
1 files changed, 10 insertions, 5 deletions
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 /// </param>
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;
+ }
}
/// <summary>
@@ -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);
|