OSDN Git Service

MacGui: Fix issue in custom anamorphic where clicking the keep ar checkbox would...
authordynaflash <dynaflash@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Tue, 2 Jun 2009 18:41:07 +0000 (18:41 +0000)
committerdynaflash <dynaflash@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Tue, 2 Jun 2009 18:41:07 +0000 (18:41 +0000)
- Also disable the keep ar checkbox for strict anamorphic

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

macosx/PictureController.mm

index 1a5e0cb..38e312e 100644 (file)
             [fWidthField setEnabled: NO];
             [fHeightStepper setEnabled: NO];
             [fHeightField setEnabled: NO];
+            [fRatioCheck setEnabled: NO];
         }
         else if ([fAnamorphicPopUp indexOfSelectedItem] == 2) // Loose anamorphic
         {
             [fDisplayWidthField setEnabled: YES];
             
             
-            /* If we are coming into custom ana or if in custom ana and the 
-             * keep ar checkbox is checked, we reset the par to original
-             * which gives us a way back if things are hosed up
+            /* If we are coming into custom anamorphic we reset the par to original
+             * which gives us a way back if things get hosed up.
              */
              
-            if (sender == fAnamorphicPopUp || (sender == fRatioCheck && [fRatioCheck  state] == NSOnState))
+            if (sender == fAnamorphicPopUp)
             {
-                if (sender == fAnamorphicPopUp)
-                {
-                    [fRatioCheck  setState: NSOnState];
-                }
-                
+                /* When entering custom anamorphic, we start with keep ar on */
+                [fRatioCheck  setState: NSOnState];
                 /*
                  KEEPING ASPECT RATIO
                  Disable editing: PIXEL WIDTH, PIXEL HEIGHT