OSDN Git Service

LinGui: add vbv settings to appletv preset
[handbrake-jp/handbrake-jp-git.git] / macosx / PictureController.m
index 307962a..e70ec80 100644 (file)
     [fAnamorphicPopUp removeAllItems];
     [fAnamorphicPopUp addItemWithTitle: @"None"];
     [fAnamorphicPopUp addItemWithTitle: @"Strict"];
-    if (allowLooseAnamorphic)
-    {
     [fAnamorphicPopUp addItemWithTitle: @"Loose"];
-    }
     [fAnamorphicPopUp addItemWithTitle: @"Custom"];
     [fAnamorphicPopUp selectItemAtIndex: job->anamorphic.mode];
     
     titleParWidth = job->anamorphic.par_width;
     titleParHeight = job->anamorphic.par_height;
     
-    [self SettingsChanged: nil];
+    [self SettingsChanged:nil];
 }
 
 - (IBAction) storageLinkChanged: (id) sender
         
        }
        
-    //job->keep_ratio  = ( [fRatioCheck state] == NSOnState );
-    
     if ([fAnamorphicPopUp indexOfSelectedItem] != 3)
     {
-    job->keep_ratio  = ( [fRatioCheck state] == NSOnState );
-            if( job->keep_ratio )
+        job->keep_ratio  = ( [fRatioCheck state] == NSOnState );
+        if( job->keep_ratio )
         {
             if( sender == fWidthStepper || sender == fRatioCheck ||
-               sender == fCropTopStepper || sender == fCropBottomStepper )
+               sender == fCropTopStepper || sender == fCropBottomStepper|| 
+               sender == fCropMatrix || sender == nil  )
             {
                 hb_fix_aspect( job, HB_KEEP_WIDTH );
                 if( job->height > fTitle->height )
     autoCrop = setting;
 }
 
-- (BOOL) allowLooseAnamorphic
-{
-    return allowLooseAnamorphic;
-}
-
-- (void) setAllowLooseAnamorphic: (BOOL) setting
-{
-    allowLooseAnamorphic = setting;
-}
-
 - (IBAction)showPreviewPanel: (id)sender forTitle: (hb_title_t *)title
 {
     //[self SetTitle:title];