diff options
author | ritsuka <[email protected]> | 2015-05-07 15:33:13 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2015-05-07 15:33:13 +0000 |
commit | 3217ba5b96189802755b90d098d29c2f900dfcbe (patch) | |
tree | 2ed1e4a7fbd497d0697664339e420e1801cbd990 /macosx/HBPicture.m | |
parent | 878199667e6a7c79ff39b3d48127324fcf2c53ad (diff) |
MacGui: wrap more hb_title properties in HBTitle.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7162 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBPicture.m')
-rw-r--r-- | macosx/HBPicture.m | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/macosx/HBPicture.m b/macosx/HBPicture.m index 68ae97b5a..8ebfb8477 100644 --- a/macosx/HBPicture.m +++ b/macosx/HBPicture.m @@ -61,21 +61,19 @@ NSString * const HBPictureChangedNotification = @"HBPictureChangedNotification"; self = [self init]; if (self) { - hb_title_t *hb_title = title.hb_title; + _width = title.width; + _height = title.height; - _width = hb_title->geometry.width; - _height = hb_title->geometry.height; + _sourceWidth = title.width; + _sourceHeight = title.height; - _sourceWidth = hb_title->geometry.width; - _sourceHeight = hb_title->geometry.height; + _sourceParNum = title.parWidth; + _sourceParDen = title.parHeight; - _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]; + _autoCropTop = title.autoCropTop; + _autoCropBottom = title.autoCropBottom; + _autoCropLeft = title.autoCropLeft; + _autoCropRight = title.autoCropRight; [self validateSettings]; |