summaryrefslogtreecommitdiffstats
path: root/macosx/HBPicture.m
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/HBPicture.m')
-rw-r--r--macosx/HBPicture.m22
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];