summaryrefslogtreecommitdiffstats
path: root/macosx/PictureController.mm
diff options
context:
space:
mode:
authordynaflash <[email protected]>2007-09-11 17:50:26 +0000
committerdynaflash <[email protected]>2007-09-11 17:50:26 +0000
commite591d6b6a91be8e69d91915e4ea32a5b11a7bed3 (patch)
tree9c158892f340513c821814c0c1e6b90bd1089d08 /macosx/PictureController.mm
parent43b033084897a545b9ae15e952e4075099043e7f (diff)
MacGui: fix deinterlace setting for the Picture Preview window which as broken in rev 936
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@952 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/PictureController.mm')
-rw-r--r--macosx/PictureController.mm12
1 files changed, 12 insertions, 0 deletions
diff --git a/macosx/PictureController.mm b/macosx/PictureController.mm
index 424e8e967..ba89789b8 100644
--- a/macosx/PictureController.mm
+++ b/macosx/PictureController.mm
@@ -265,7 +265,19 @@ static int GetAlignedSize( int size )
job->width = [fWidthStepper intValue];
job->height = [fHeightStepper intValue];
job->keep_ratio = ( [fRatioCheck state] == NSOnState );
+
fPictureFilterSettings.deinterlace = [fDeinterlacePopUp indexOfSelectedItem];
+ /* if the gui deinterlace settings are fast through slowest, the job->deinterlace
+ value needs to be set to one, for the job as well as the previews showing deinterlacing
+ otherwise set job->deinterlace to 0 or "off" */
+ if (fPictureFilterSettings.deinterlace > 0)
+ {
+ job->deinterlace = 1;
+ }
+ else
+ {
+ job->deinterlace = 0;
+ }
fPictureFilterSettings.denoise = [fDenoisePopUp indexOfSelectedItem];
fPictureFilterSettings.detelecine = [fDetelecineCheck state];
job->pixel_ratio = ( [fPARCheck state] == NSOnState );