]> granicus.if.org Git - handbrake/commitdiff
MacGui: removed 4 unneeded AutoCrop* ivars.
authorritsuka <damiog@gmail.com>
Sun, 23 Nov 2014 13:11:18 +0000 (13:11 +0000)
committerritsuka <damiog@gmail.com>
Sun, 23 Nov 2014 13:11:18 +0000 (13:11 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6541 b64f7644-9d1e-0410-96f1-a4d463321fa5

macosx/Controller.h
macosx/Controller.m

index 1dc56759dfd8ff22c156e613b08634b9923ebb45..9797cd35d225772a81f1665833a0020326c8d525 100644 (file)
@@ -128,12 +128,6 @@ extern NSString *keyTitleTag;
     // Creates iPod compatible mp4's (add ipod uuid atom)
     IBOutlet NSButton            * fDstMp4iPodFileCheck;
 
-       /* Picture variables */
-       int                        AutoCropTop;
-       int                        AutoCropBottom;
-       int                        AutoCropLeft;
-       int                        AutoCropRight;
-
     /* Bottom */
     IBOutlet NSTextField         * fStatusField;
     IBOutlet NSProgressIndicator * fRipIndicator;
index f22dfdee5b5f3ddbbd42ba48f1e82de6878c9dd3..fb9888796a7bf9d1c8c11a86a402f2506a1f95b8 100644 (file)
@@ -2889,10 +2889,10 @@ fWorkingCount = 0;
     {
         [fPictureController setAutoCrop:YES];
         /* Here we use the auto crop values determined right after scan */
-        job->crop[0] = AutoCropTop;
-        job->crop[1] = AutoCropBottom;
-        job->crop[2] = AutoCropLeft;
-        job->crop[3] = AutoCropRight;
+        job->crop[0] = fTitle->crop[0];
+        job->crop[1] = fTitle->crop[1];
+        job->crop[2] = fTitle->crop[2];
+        job->crop[3] = fTitle->crop[3];
         
     }
 
@@ -4339,13 +4339,6 @@ fWorkingCount = 0;
     
     /* Set Auto Crop to on upon selecting a new title  */
     [fPictureController setAutoCrop:YES];
-    
-       /* We get the originial output picture width and height and put them
-       in variables for use with some presets later on */
-       AutoCropTop = title->crop[0];
-       AutoCropBottom = title->crop[1];
-       AutoCropLeft = title->crop[2];
-       AutoCropRight = title->crop[3];
 
        /* Update the others views */
        [[NSNotificationCenter defaultCenter] postNotification:
@@ -4812,11 +4805,10 @@ the user is using "Custom" settings by determining the sender*/
             {
                 [fPictureController setAutoCrop:YES];
                 /* Here we use the auto crop values determined right after scan */
-                job->crop[0] = AutoCropTop;
-                job->crop[1] = AutoCropBottom;
-                job->crop[2] = AutoCropLeft;
-                job->crop[3] = AutoCropRight;
-                
+                job->crop[0] = fTitle->crop[0];
+                job->crop[1] = fTitle->crop[1];
+                job->crop[2] = fTitle->crop[2];
+                job->crop[3] = fTitle->crop[3];
             }
             
             /* crop may have changed, reset maxWidth/maxHeight */