Skip to content

Commit 49636a9

Browse files
changed graphics context scale factor
1 parent 9772fc8 commit 49636a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

JSQMessagesViewController/Factories/JSQMessagesAvatarFactory.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ + (UIImage *)jsq_circularImage:(UIImage *)image withDiamter:(NSUInteger)diameter
9191
{
9292
CGRect frame = CGRectMake(0.0f, 0.0f, diameter, diameter);
9393

94-
UIGraphicsBeginImageContextWithOptions(frame.size, NO, image.scale);
94+
UIGraphicsBeginImageContextWithOptions(frame.size, NO, [UIScreen mainScreen].scale);
9595
CGContextRef context = UIGraphicsGetCurrentContext();
9696
CGContextSaveGState(context);
9797

0 commit comments

Comments
 (0)