Skip to content

Commit

Permalink
MacGui: do not show the display width if the video is not anamorphic.
Browse files Browse the repository at this point in the history
  • Loading branch information
galad87 committed Apr 20, 2022
1 parent 72b63d2 commit edbfddd
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions macosx/HBPicture+UIAdditions.m
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,13 @@ - (NSString *)info
(@"Source: %dx%d, ", @"HBPicture -> short info"),
self.sourceWidth, self.sourceHeight];

if (self.anamorphicMode == HBPictureAnarmophicModeAuto)
if (self.anamorphicMode == HBPictureAnarmophicModeAuto && self.parNum != 1 && self.parDen != 1)
{
sizeInfo = [NSString stringWithFormat:HBKitLocalizedString
(@"%@Output: %dx%d, Anamorphic: %dx%d Automatic", @"HBPicture -> short info"),
sizeInfo, self.storageWidth, self.storageHeight, self.displayWidth, self.displayHeight];
}
else if (self.anamorphicMode == HBPictureAnarmophicModeCustom)
else if (self.anamorphicMode == HBPictureAnarmophicModeCustom && self.parNum != 1 && self.parDen != 1)
{
sizeInfo = [NSString stringWithFormat:HBKitLocalizedString
(@"%@Output: %dx%d, Anamorphic: %dx%d Custom", @"HBPicture -> short info"),
Expand All @@ -176,8 +176,15 @@ - (NSString *)info

- (NSString *)shortInfo
{
return [NSString stringWithFormat:HBKitLocalizedString(@"%dx%d Storage, %dx%d Display", @"HBPicture -> short info"),
self.storageWidth, self.storageHeight, self.displayWidth, self.height];
if (self.parNum != 1 && self.parDen != 1)
{
return [NSString stringWithFormat:HBKitLocalizedString(@"%dx%d Storage, %dx%d Display", @"HBPicture -> short info"),
self.storageWidth, self.storageHeight, self.displayWidth, self.height];
}
else
{
return [NSString stringWithFormat:HBKitLocalizedString(@"%dx%d", @"HBPicture -> short non anamorphic info"), self.storageWidth, self.storageHeight];
}
}

- (NSString *)summary
Expand Down

0 comments on commit edbfddd

Please sign in to comment.