Skip to content
This repository has been archived by the owner on Jun 21, 2020. It is now read-only.

Commit

Permalink
[tweak] ensure we have the aspect ratio right (eg, for youtube)
Browse files Browse the repository at this point in the history
  • Loading branch information
kirb committed Jul 7, 2017
1 parent 85e9c8b commit 7e48ab7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HBCZNowPlayingBulletinProvider.m
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ - (NSData *)attachmentPNGDataForRecordID:(NSString *)recordID sizeConstraints:(B
}

// determine the size to use
CGSize size = [constraints sizeFromAspectRatio:1];
CGSize size = [constraints sizeFromAspectRatio:_currentArt.size.width / _currentArt.size.height];

// render at the new size
UIGraphicsBeginImageContextWithOptions(size, NO, 0);
Expand Down

0 comments on commit 7e48ab7

Please sign in to comment.