diff options
author | dynaflash <[email protected]> | 2008-09-26 13:52:19 +0000 |
---|---|---|
committer | dynaflash <[email protected]> | 2008-09-26 13:52:19 +0000 |
commit | e6e01081163b49d38116b4d657afe4f1c5bd1c31 (patch) | |
tree | 4681bdf35357518222c7b26c75f39b7cf8ca3f26 | |
parent | 93d596cf40b94e928b81cb4720ce77ab49d4ea9f (diff) |
MacGui: Fix presets when using maximum source picture size and loose anamorphic so choosing such a preset sets the width to its full source storage size and properly applies loose anamorphic.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1767 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | macosx/Controller.mm | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/macosx/Controller.mm b/macosx/Controller.mm index 0e43904a3..904b4a17d 100644 --- a/macosx/Controller.mm +++ b/macosx/Controller.mm @@ -3645,18 +3645,15 @@ the user is using "Custom" settings by determining the sender*/ - (IBAction) revertPictureSizeToMax: (id) sender { hb_job_t * job = fTitle->job; - /* We use the output picture width and height - as calculated from libhb right after title is set - in TitlePopUpChanged */ - job->width = PicOrigOutputWidth; - job->height = PicOrigOutputHeight; - [fPictureController setAutoCrop:YES]; + [fPictureController setAutoCrop:YES]; /* Here we use the auto crop values determined right after scan */ job->crop[0] = AutoCropTop; job->crop[1] = AutoCropBottom; job->crop[2] = AutoCropLeft; job->crop[3] = AutoCropRight; - + /* Here we apply the max source storage width and height */ + job->width = fTitle->width-fTitle->job->crop[2]-fTitle->job->crop[3]; + job->height = fTitle->height-fTitle->job->crop[0]-fTitle->job->crop[1]; [self calculatePictureSizing: sender]; /* We call method to change UI to reflect whether a preset is used or not*/ |