MacGui: do not show the display width if the video is not anamorphic.

This commit is contained in:
Damiano galassi 2022-04-20 11:00:41 +02:00
parent 72b63d2ff5
commit edbfdddcf3
No known key found for this signature in database
GPG Key ID: 5452E231DFDBCA11

View File

@ -152,13 +152,13 @@ static NSString * FormattedDisplayAspect(double disp_width, double disp_height)
(@"Source: %dx%d, ", @"HBPicture -> short info"), (@"Source: %dx%d, ", @"HBPicture -> short info"),
self.sourceWidth, self.sourceHeight]; self.sourceWidth, self.sourceHeight];
if (self.anamorphicMode == HBPictureAnarmophicModeAuto) if (self.anamorphicMode == HBPictureAnarmophicModeAuto && self.parNum != 1 && self.parDen != 1)
{ {
sizeInfo = [NSString stringWithFormat:HBKitLocalizedString sizeInfo = [NSString stringWithFormat:HBKitLocalizedString
(@"%@Output: %dx%d, Anamorphic: %dx%d Automatic", @"HBPicture -> short info"), (@"%@Output: %dx%d, Anamorphic: %dx%d Automatic", @"HBPicture -> short info"),
sizeInfo, self.storageWidth, self.storageHeight, self.displayWidth, self.displayHeight]; 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 sizeInfo = [NSString stringWithFormat:HBKitLocalizedString
(@"%@Output: %dx%d, Anamorphic: %dx%d Custom", @"HBPicture -> short info"), (@"%@Output: %dx%d, Anamorphic: %dx%d Custom", @"HBPicture -> short info"),
@ -176,8 +176,15 @@ static NSString * FormattedDisplayAspect(double disp_width, double disp_height)
- (NSString *)shortInfo - (NSString *)shortInfo
{ {
return [NSString stringWithFormat:HBKitLocalizedString(@"%dx%d Storage, %dx%d Display", @"HBPicture -> short info"), if (self.parNum != 1 && self.parDen != 1)
self.storageWidth, self.storageHeight, self.displayWidth, self.height]; {
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 - (NSString *)summary