diff options
author | ritsuka <[email protected]> | 2015-08-06 09:50:09 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2015-08-06 09:50:09 +0000 |
commit | 21ea1a3f5c8334916b1927e95db19a0a29f28d63 (patch) | |
tree | bd7b1a6406b0d22c6fd822ce4d22cb60e094dbaa /macosx/HBPicture.m | |
parent | d4a4a3ccd682ae6992902321e6bfcea0ff8c89a9 (diff) |
MacGui: switch back another property to assign, 10.7 does not support weak for NSWindowController and NSViewController classes
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7393 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBPicture.m')
-rw-r--r-- | macosx/HBPicture.m | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/macosx/HBPicture.m b/macosx/HBPicture.m index 43c1d7979..099a4c77a 100644 --- a/macosx/HBPicture.m +++ b/macosx/HBPicture.m @@ -345,6 +345,11 @@ NSString * const HBPictureChangedNotification = @"HBPictureChangedNotification"; return self.sourceWidth / 2 - 2; } +- (int)sourceDisplayWidth +{ + return (int) (self.sourceWidth * self.sourceParNum / (double)self.sourceParDen); +} + + (NSSet *)keyPathsForValuesAffectingValueForKey:(NSString *)key { NSSet *retval = nil; |