diff options
author | sr55 <[email protected]> | 2009-07-22 17:07:06 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2009-07-22 17:07:06 +0000 |
commit | c88824947aa44722bdafa88552e2e9ba4c560743 (patch) | |
tree | 9e8b14c0656934f5b6c07dc641b077b35fecd1db | |
parent | db5ff887f7557d89c44537c55731eac0ab49f6d1 (diff) |
WinGui:
- PictureSettings: Don't reset to source width after every scan or title change. Make sure AR is kept on title change.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2724 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | win/C#/Controls/PictureSettings.cs | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/win/C#/Controls/PictureSettings.cs b/win/C#/Controls/PictureSettings.cs index d3196aec1..2ad34a4d5 100644 --- a/win/C#/Controls/PictureSettings.cs +++ b/win/C#/Controls/PictureSettings.cs @@ -48,16 +48,12 @@ namespace Handbrake.Controls crop_right.Value = GetCropMod2Clean(_SourceTitle.AutoCropDimensions[3]);
// Set the Resolution Boxes
- text_width.Value = _SourceTitle.Resolution.Width;
-
if (drp_anamorphic.SelectedIndex == 0)
{
- int width = _SourceTitle.Resolution.Width;
-
- double crop_width = _SourceTitle.Resolution.Width - (double)crop_left.Value - (double)crop_right.Value;
- double crop_height = _SourceTitle.Resolution.Height - (double)crop_top.Value - (double)crop_bottom.Value;
- double newHeight = (width * _SourceTitle.Resolution.Width * sourceAspect.Height * crop_height) / (_SourceTitle.Resolution.Height * sourceAspect.Width * crop_width);
- text_height.Value = (decimal)GetModulusValue(newHeight);
+ if (text_width.Value == 0) // Only update the values if the fields don't already have values.
+ text_width.Value = _SourceTitle.Resolution.Width;
+
+ check_KeepAR.Checked = true; // Forces Resolution to be correct.
}
else
{
@@ -68,7 +64,6 @@ namespace Handbrake.Controls updownParWidth.Value = _SourceTitle.ParVal.Width;
updownParHeight.Value = _SourceTitle.ParVal.Height;
updownDisplayWidth.Value = calculateAnamorphicSizes().Width;
-
}
}
|