From abf39f70a236f4c87fa19a1a5064f5ba5f1e9541 Mon Sep 17 00:00:00 2001 From: dynaflash Date: Thu, 10 Jan 2008 15:00:57 +0000 Subject: [PATCH] MacGui: Fix issue where presets were not applying their filters properly the picture preview window. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1183 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- macosx/PictureController.mm | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/macosx/PictureController.mm b/macosx/PictureController.mm index 8526b849a..132d3b151 100644 --- a/macosx/PictureController.mm +++ b/macosx/PictureController.mm @@ -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]; -- 2.40.0