OSDN Git Service

WinGui:
authorsr55 <sr55@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sat, 14 Nov 2009 22:40:29 +0000 (22:40 +0000)
committersr55 <sr55@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sat, 14 Nov 2009 22:40:29 +0000 (22:40 +0000)
- Fix some issues with loose anamorphic and cropping.

git-svn-id: svn://localhost/HandBrake/trunk@2932 b64f7644-9d1e-0410-96f1-a4d463321fa5

win/C#/Controls/PictureSettings.cs

index 4f87c33..bbca24d 100644 (file)
@@ -379,6 +379,11 @@ namespace Handbrake.Controls
             crop_bottom.Enabled = check_customCrop.Checked;\r
             crop_left.Enabled = check_customCrop.Checked;\r
             crop_right.Enabled = check_customCrop.Checked;\r
+\r
+            crop_top.Value = Source.AutoCropDimensions[0];\r
+            crop_bottom.Value = Source.AutoCropDimensions[1];\r
+            crop_left.Value = Source.AutoCropDimensions[2];\r
+            crop_right.Value = Source.AutoCropDimensions[3];\r
         }\r
         private void crop_ValueChanged(object sender, EventArgs e)\r
         {\r
@@ -443,7 +448,7 @@ namespace Handbrake.Controls
                             - Uses mod16-compliant dimensions,\r
                             - Allows users to set the width\r
                         */\r
-                        width = (int)text_width.Value - (int)crop_left.Value - (int)crop_right.Value;\r
+                        width = (int) text_width.Value;\r
                         width = GetModulusValue(width); /* Time to get picture width that divide cleanly.*/\r
 \r
                         height = (width / storage_aspect) + 0.5;\r