diff options
author | Damiano Galassi <[email protected]> | 2016-10-31 18:40:08 +0100 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2016-10-31 18:40:08 +0100 |
commit | 77d09e91d9e7ed3e31abb13c68db0843e7c1c299 (patch) | |
tree | 858a02d59b58c846538381d2e112edc9c9e27dd8 /macosx/HBPicture+UIAdditions.m | |
parent | b796c6c6b7b5a87c7c8ccf696e92c1469fc62b7d (diff) |
MacGui: Add new anamorphic mode "Automatic".
Diffstat (limited to 'macosx/HBPicture+UIAdditions.m')
-rw-r--r-- | macosx/HBPicture+UIAdditions.m | 34 |
1 files changed, 4 insertions, 30 deletions
diff --git a/macosx/HBPicture+UIAdditions.m b/macosx/HBPicture+UIAdditions.m index 81da8c986..265d1c1ad 100644 --- a/macosx/HBPicture+UIAdditions.m +++ b/macosx/HBPicture+UIAdditions.m @@ -18,26 +18,6 @@ #pragma mark - Editable state -+ (NSSet<NSString *> *)keyPathsForValuesAffectingWidthEditable -{ - return [NSSet setWithObjects:@"anamorphicMode", nil]; -} - -- (BOOL)isWidthEditable -{ - return (self.anamorphicMode != HB_ANAMORPHIC_STRICT) ? YES : NO; -} - -+ (NSSet<NSString *> *)keyPathsForValuesAffectingHeightEditable -{ - return [NSSet setWithObjects:@"anamorphicMode", nil]; -} - -- (BOOL)isHeightEditable -{ - return (self.anamorphicMode != HB_ANAMORPHIC_STRICT) ? YES : NO; -} - + (NSSet<NSString *> *)keyPathsForValuesAffectingKeepDisplayAspectEditable { return [NSSet setWithObjects:@"anamorphicMode", nil]; @@ -45,7 +25,7 @@ - (BOOL)isKeepDisplayAspectEditable { - if (self.anamorphicMode == HB_ANAMORPHIC_STRICT || + if (self.anamorphicMode == HB_ANAMORPHIC_AUTO || self.anamorphicMode == HB_ANAMORPHIC_LOOSE) { return NO; @@ -79,10 +59,10 @@ @"Source: %dx%d, ", self.sourceWidth, self.sourceHeight]; - if (self.anamorphicMode == HB_ANAMORPHIC_STRICT) // Original PAR Implementation + if (self.anamorphicMode == HB_ANAMORPHIC_AUTO) { sizeInfo = [NSString stringWithFormat: - @"%@Output: %dx%d, Anamorphic: %dx%d Strict", + @"%@Output: %dx%d, Anamorphic: %dx%d Auto", sizeInfo, self.width, self.height, self.displayWidth, self.height]; } else if (self.anamorphicMode == HB_ANAMORPHIC_LOOSE) // Loose Anamorphic @@ -130,13 +110,7 @@ { NSMutableString *summary = [NSMutableString stringWithString:@""]; [summary appendString:self.info]; - - if (self.anamorphicMode != HB_ANAMORPHIC_STRICT) - { - // anamorphic is not Strict, show the modulus - [summary appendFormat:@", Modulus: %d", self.modulus]; - } - + [summary appendFormat:@", Modulus: %d", self.modulus]; [summary appendFormat:@", Crop: %s %d/%d/%d/%d", self.autocrop ? "Auto" : "Custom", self.cropTop, self.cropBottom, |