diff options
author | dynaflash <[email protected]> | 2009-05-01 21:01:58 +0000 |
---|---|---|
committer | dynaflash <[email protected]> | 2009-05-01 21:01:58 +0000 |
commit | 9e6e61be9bac55090c9f5e9f86f2f9699150a60b (patch) | |
tree | 317b6a98775d7e097ddc45f5748d6b0ca9560e36 | |
parent | 3c1855c68eec80f1cab8711b92425989eb948604 (diff) |
MacGui: Fix issue in custom anamorphic where the modulus was not changed back after leaving custom anamorphic which caused the steppers to freeze when anamorphic was turned off and keep ar was on among other things.
- Thanks s55 for the heads up.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2364 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | macosx/PictureController.mm | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/macosx/PictureController.mm b/macosx/PictureController.mm index 7395154a5..1a5e0cb5b 100644 --- a/macosx/PictureController.mm +++ b/macosx/PictureController.mm @@ -487,13 +487,12 @@ hb_job_t * job = title->job; fTitle = title; - - modulus = 8; //modulus value of 16, 8 or 4 + [fWidthStepper setValueWraps: NO]; - [fWidthStepper setIncrement: [[fModulusPopUp titleOfSelectedItem] intValue]]; + [fWidthStepper setIncrement: 16]; [fWidthStepper setMinValue: 64]; [fHeightStepper setValueWraps: NO]; - [fHeightStepper setIncrement: [[fModulusPopUp titleOfSelectedItem] intValue]]; + [fHeightStepper setIncrement: 16]; [fHeightStepper setMinValue: 64]; [fCropTopStepper setIncrement: 2]; @@ -652,9 +651,9 @@ - (IBAction) SettingsChanged: (id) sender { hb_job_t * job = fTitle->job; - - [fWidthStepper setIncrement: [[fModulusPopUp titleOfSelectedItem] intValue]]; - [fHeightStepper setIncrement: [[fModulusPopUp titleOfSelectedItem] intValue]]; + [fModulusPopUp setEnabled:NO]; + job->anamorphic.modulus = 16; + /* Since custom anamorphic allows for a height setting > fTitle->height * check to make sure it is returned to fTitle->height for all other modes */ @@ -677,11 +676,6 @@ job->crop[2] = [fCropLeftStepper intValue]; job->crop[3] = [fCropRightStepper intValue]; } - /* Initially we set modulus widgets to 16 and disabled since we - * only use it for Custom Anamorphic below - */ - [fModulusPopUp setEnabled:NO]; - job->anamorphic.modulus = 16; [fRatioCheck setEnabled: YES]; @@ -692,10 +686,18 @@ /* If we are not custom anamorphic, make sure we retain the orginal par */ if( [fAnamorphicPopUp indexOfSelectedItem] != 3 ) - { + { job->anamorphic.par_width = titleParWidth; job->anamorphic.par_height = titleParHeight; [fRatioLabel setHidden: NO]; + + [fWidthStepper setIncrement: 16]; + [fHeightStepper setIncrement: 16]; + } + else + { + [fWidthStepper setIncrement: [[fModulusPopUp titleOfSelectedItem] intValue]]; + [fHeightStepper setIncrement: [[fModulusPopUp titleOfSelectedItem] intValue]]; } if( [fAnamorphicPopUp indexOfSelectedItem] > 0 ) |