diff options
author | dynaflash <[email protected]> | 2008-09-25 03:56:52 +0000 |
---|---|---|
committer | dynaflash <[email protected]> | 2008-09-25 03:56:52 +0000 |
commit | b6e78bffa6baa8adb7436a9e41a392c4544aacc3 (patch) | |
tree | 594ccf1dcd4c5c3bf6979fc7f70873667d668178 /macosx | |
parent | ba295bc18bec81600913c056a8dc31ec26702dd2 (diff) |
MacGui: Loose Anamorphic - Upon initial selection set the width to the source storage width.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1760 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/PictureController.mm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/macosx/PictureController.mm b/macosx/PictureController.mm index 743bda368..c32a12036 100644 --- a/macosx/PictureController.mm +++ b/macosx/PictureController.mm @@ -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]; |