diff options
author | ritsuka <[email protected]> | 2014-12-28 08:14:32 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2014-12-28 08:14:32 +0000 |
commit | a03845e869297931544d4d8ba5a15678411df155 (patch) | |
tree | 020a76f4d45e2375f5fd61d5f083f51cb0176552 /macosx/HBPicture+UIAdditions.m | |
parent | 3acda4f9eb6a6c23f0a9c627aba354433656f70d (diff) |
MacGui: move more things out of HBController.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6664 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBPicture+UIAdditions.m')
-rw-r--r-- | macosx/HBPicture+UIAdditions.m | 28 |
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; |