summaryrefslogtreecommitdiffstats
path: root/macosx/HBPicture.m
diff options
context:
space:
mode:
authorritsuka <[email protected]>2015-05-01 15:13:00 +0000
committerritsuka <[email protected]>2015-05-01 15:13:00 +0000
commitb51de410067caf1f05aac3f8e234c75550fd3cfe (patch)
treeb4144932cb104c6915d97625c48f657af8cbab09 /macosx/HBPicture.m
parent58b25a7664d9d063b404ec39270ff4cdfa333979 (diff)
MacGui: fix autocrop.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7144 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBPicture.m')
-rw-r--r--macosx/HBPicture.m19
1 files changed, 13 insertions, 6 deletions
diff --git a/macosx/HBPicture.m b/macosx/HBPicture.m
index 8c83d91fc..68ae97b5a 100644
--- a/macosx/HBPicture.m
+++ b/macosx/HBPicture.m
@@ -61,14 +61,21 @@ NSString * const HBPictureChangedNotification = @"HBPictureChangedNotification";
self = [self init];
if (self)
{
- _width = title.hb_title->geometry.width;
- _height = title.hb_title->geometry.height;
+ hb_title_t *hb_title = title.hb_title;
- _sourceWidth = title.hb_title->geometry.width;
- _sourceHeight = title.hb_title->geometry.height;
+ _width = hb_title->geometry.width;
+ _height = hb_title->geometry.height;
- _sourceParNum = title.hb_title->geometry.par.num;
- _sourceParDen = title.hb_title->geometry.par.den;
+ _sourceWidth = hb_title->geometry.width;
+ _sourceHeight = hb_title->geometry.height;
+
+ _sourceParNum = hb_title->geometry.par.num;
+ _sourceParDen = hb_title->geometry.par.den;
+
+ _autoCropTop = hb_title->crop[0];
+ _autoCropBottom = hb_title->crop[1];
+ _autoCropLeft = hb_title->crop[2];
+ _autoCropRight = hb_title->crop[3];
[self validateSettings];