OSDN Git Service

MacGui: Fix issue in custom anamorphic where the modulus was not changed back after...
authordynaflash <dynaflash@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Fri, 1 May 2009 21:01:58 +0000 (21:01 +0000)
committerdynaflash <dynaflash@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Fri, 1 May 2009 21:01:58 +0000 (21:01 +0000)
- Thanks s55 for the heads up.

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

macosx/PictureController.mm

index 7395154..1a5e0cb 100644 (file)
     hb_job_t * job = title->job;
 
     fTitle = title;
-    
-     modulus = 8; //modulus value of 16, 8 or 4
+
     [fWidthStepper  setValueWraps: NO];
-    [fWidthStepper  setIncrement: [[fModulusPopUp titleOfSelectedItem] intValue]];
+    [fWidthStepper  setIncrement: 16];
     [fWidthStepper  setMinValue: 64];
     [fHeightStepper setValueWraps: NO];
-    [fHeightStepper setIncrement: [[fModulusPopUp titleOfSelectedItem] intValue]];
+    [fHeightStepper setIncrement: 16];
     [fHeightStepper setMinValue: 64];
     
     [fCropTopStepper    setIncrement: 2];
 - (IBAction) SettingsChanged: (id) sender
 {
     hb_job_t * job = fTitle->job;
-    
-    [fWidthStepper  setIncrement: [[fModulusPopUp titleOfSelectedItem] intValue]];
-    [fHeightStepper setIncrement: [[fModulusPopUp titleOfSelectedItem] intValue]];
+    [fModulusPopUp setEnabled:NO];
+    job->anamorphic.modulus = 16;
+
     /* Since custom anamorphic allows for a height setting > fTitle->height
      * check to make sure it is returned to fTitle->height for all other modes
      */
         job->crop[2] = [fCropLeftStepper   intValue];
         job->crop[3] = [fCropRightStepper  intValue];
     }
-    /* Initially we set modulus widgets to 16 and disabled since we
-     * only use it for Custom Anamorphic below
-     */
-    [fModulusPopUp setEnabled:NO];
-    job->anamorphic.modulus = 16;
     
     [fRatioCheck setEnabled: YES];
 
     
     /* If we are not custom anamorphic, make sure we retain the orginal par */
     if( [fAnamorphicPopUp indexOfSelectedItem] != 3 )
-       {
+    {
         job->anamorphic.par_width = titleParWidth;
         job->anamorphic.par_height = titleParHeight;
         [fRatioLabel setHidden: NO];
+        
+        [fWidthStepper  setIncrement: 16];
+        [fHeightStepper setIncrement: 16];
+    }
+    else
+    {
+        [fWidthStepper  setIncrement: [[fModulusPopUp titleOfSelectedItem] intValue]];
+        [fHeightStepper setIncrement: [[fModulusPopUp titleOfSelectedItem] intValue]];
     }
     
        if( [fAnamorphicPopUp indexOfSelectedItem] > 0 )