summaryrefslogtreecommitdiffstats
path: root/macosx/HBPicture+UIAdditions.m
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/HBPicture+UIAdditions.m')
-rw-r--r--macosx/HBPicture+UIAdditions.m28
1 files changed, 15 insertions, 13 deletions
diff --git a/macosx/HBPicture+UIAdditions.m b/macosx/HBPicture+UIAdditions.m
index e07e30667..60b761588 100644
--- a/macosx/HBPicture+UIAdditions.m
+++ b/macosx/HBPicture+UIAdditions.m
@@ -50,37 +50,39 @@
- (NSString *)info
{
- if (!self.title)
+ NSString *sizeInfo = @"";
+
+ if (self.title)
{
- return @"";
+ hb_title_t *title = self.title.hb_title;
+ sizeInfo = [NSString stringWithFormat:
+ @"Source: %dx%d, ",
+ title->geometry.width, title->geometry.height];
}
- NSString *sizeInfo;
- hb_title_t *title = self.title.hb_title;
-
if (self.anamorphicMode == HB_ANAMORPHIC_STRICT) // Original PAR Implementation
{
sizeInfo = [NSString stringWithFormat:
- @"Source: %dx%d, Output: %dx%d, Anamorphic: %dx%d Strict",
- title->geometry.width, title->geometry.height, self.width, self.height, self.displayWidth, self.height];
+ @"%@Output: %dx%d, Anamorphic: %dx%d Strict",
+ sizeInfo, self.width, self.height, self.displayWidth, self.height];
}
else if (self.anamorphicMode == HB_ANAMORPHIC_LOOSE) // Loose Anamorphic
{
sizeInfo = [NSString stringWithFormat:
- @"Source: %dx%d, Output: %dx%d, Anamorphic: %dx%d Loose",
- title->geometry.width, title->geometry.height, self.width, self.height, self.displayWidth, self.height];
+ @"%@Output: %dx%d, Anamorphic: %dx%d Loose",
+ sizeInfo, self.width, self.height, self.displayWidth, self.height];
}
else if (self.anamorphicMode == HB_ANAMORPHIC_CUSTOM) // Custom Anamorphic
{
sizeInfo = [NSString stringWithFormat:
- @"Source: %dx%d, Output: %dx%d, Anamorphic: %dx%d Custom",
- title->geometry.width, title->geometry.height, self.width, self.height, self.displayWidth, self.height];
+ @"%@Output: %dx%d, Anamorphic: %dx%d Custom",
+ sizeInfo, self.width, self.height, self.displayWidth, self.height];
}
else // No Anamorphic
{
sizeInfo = [NSString stringWithFormat:
- @"Source: %dx%d, Output: %dx%d",
- title->geometry.width, title->geometry.height, self.width, self.height];
+ @"%@Output: %dx%d",
+ sizeInfo, self.width, self.height];
}
return sizeInfo;