]> granicus.if.org Git - handbrake/commitdiff
MacGui: Fix issue where presets were not applying their filters properly the picture...
authordynaflash <dynaflashtech@gmail.com>
Thu, 10 Jan 2008 15:00:57 +0000 (15:00 +0000)
committerdynaflash <dynaflashtech@gmail.com>
Thu, 10 Jan 2008 15:00:57 +0000 (15:00 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1183 b64f7644-9d1e-0410-96f1-a4d463321fa5

macosx/PictureController.mm

index 8526b849a0741e2e6f1eae5d0d424fad546c73ac..132d3b1512a1f561a37a77fd0bba9ab3ceb65c9f 100644 (file)
@@ -115,9 +115,6 @@ static int GetAlignedSize( int size )
     }
     [fAnamorphicPopUp selectItemAtIndex: job->pixel_ratio];
     
-       /* Set deinterlaces level according to the integer in the main window */
-       [fDeinterlacePopUp selectItemAtIndex: fPictureFilterSettings.deinterlace];
-    
     /* We initially set the previous state of keep ar to on */
     keepAspectRatioPreviousState = 1;
        if (!autoCrop)
@@ -138,6 +135,13 @@ static int GetAlignedSize( int size )
         [fCropMatrix  selectCellAtRow: 0 column:0];
        }
        
+       /* Set filters widgets according to the filters struct */
+       [fVFRCheck setState:fPictureFilterSettings.vfr];
+    [fDetelecineCheck setState:fPictureFilterSettings.detelecine];
+    [fDeinterlacePopUp selectItemAtIndex: fPictureFilterSettings.deinterlace];
+    [fDenoisePopUp selectItemAtIndex: fPictureFilterSettings.denoise];
+    [fDeblockCheck setState: fPictureFilterSettings.deblock];
+    
     fPicture = 0;
     MaxOutputWidth = title->width - job->crop[2] - job->crop[3];
     MaxOutputHeight = title->height - job->crop[0] - job->crop[1];