summaryrefslogtreecommitdiffstats
path: root/win/C#/Controls/PictureSettings.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2009-11-14 22:40:29 +0000
committersr55 <[email protected]>2009-11-14 22:40:29 +0000
commit744479c1bd9869dc3ccddaf4efbf56f81c506937 (patch)
treef9b6c2f17ce5b5748c69f5f8248aa05dddff29ae /win/C#/Controls/PictureSettings.cs
parentab8077a17b0fe9e9969d864310b352fa79e6f630 (diff)
WinGui:
- Fix some issues with loose anamorphic and cropping. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2932 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Controls/PictureSettings.cs')
-rw-r--r--win/C#/Controls/PictureSettings.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/win/C#/Controls/PictureSettings.cs b/win/C#/Controls/PictureSettings.cs
index 4f87c33f9..bbca24dc1 100644
--- a/win/C#/Controls/PictureSettings.cs
+++ b/win/C#/Controls/PictureSettings.cs
@@ -379,6 +379,11 @@ namespace Handbrake.Controls
crop_bottom.Enabled = check_customCrop.Checked;
crop_left.Enabled = check_customCrop.Checked;
crop_right.Enabled = check_customCrop.Checked;
+
+ crop_top.Value = Source.AutoCropDimensions[0];
+ crop_bottom.Value = Source.AutoCropDimensions[1];
+ crop_left.Value = Source.AutoCropDimensions[2];
+ crop_right.Value = Source.AutoCropDimensions[3];
}
private void crop_ValueChanged(object sender, EventArgs e)
{
@@ -443,7 +448,7 @@ namespace Handbrake.Controls
- Uses mod16-compliant dimensions,
- Allows users to set the width
*/
- width = (int)text_width.Value - (int)crop_left.Value - (int)crop_right.Value;
+ width = (int) text_width.Value;
width = GetModulusValue(width); /* Time to get picture width that divide cleanly.*/
height = (width / storage_aspect) + 0.5;