]> granicus.if.org Git - handbrake/commitdiff
MacGui: Loose Anamorphic - Upon initial selection set the width to the source storage...
authordynaflash <dynaflashtech@gmail.com>
Thu, 25 Sep 2008 03:56:52 +0000 (03:56 +0000)
committerdynaflash <dynaflashtech@gmail.com>
Thu, 25 Sep 2008 03:56:52 +0000 (03:56 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1760 b64f7644-9d1e-0410-96f1-a4d463321fa5

macosx/PictureController.mm

index 743bda368d253ee8317d76e80f2e2673a87abfde..c32a120369db8e2358a488cb8126f4df88335bd5 100644 (file)
@@ -262,6 +262,14 @@ are maintained across different sources */
             /* We set job->width and call hb_set_anamorphic_size in libhb to do a "dry run" to get
              * the values to be used by libhb for loose anamorphic
              */
+            /* if the sender is the anamorphic popup, then we know that loose anamorphic has just
+             * been turned on, so snap the width to full width for the source.
+             */
+            if (sender == fAnamorphicPopUp)
+            {
+                [fWidthStepper      setIntValue: fTitle->width-fTitle->job->crop[2]-fTitle->job->crop[3]];
+                [fWidthField        setIntValue: fTitle->width-fTitle->job->crop[2]-fTitle->job->crop[3]];
+            }
             job->width       = [fWidthStepper  intValue];
             hb_set_anamorphic_size(job, &output_width, &output_height, &output_par_width, &output_par_height);
             [fHeightStepper      setIntValue: output_height];