From dcde40fc01d2815070a2b4b496234aeb1b6d038e Mon Sep 17 00:00:00 2001 From: mythodeia Date: Wed, 15 Jul 2015 10:43:29 +0300 Subject: [PATCH] set as default the device's screen scale --- SDWebImage/SDWebImageCompat.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDWebImage/SDWebImageCompat.m b/SDWebImage/SDWebImageCompat.m index 54fb60eb..9a011bc0 100644 --- a/SDWebImage/SDWebImageCompat.m +++ b/SDWebImage/SDWebImageCompat.m @@ -28,7 +28,7 @@ inline UIImage *SDScaledImageForKey(NSString *key, UIImage *image) { } else { if ([[UIScreen mainScreen] respondsToSelector:@selector(scale)]) { - CGFloat scale = 1.0; + CGFloat scale = [UIScreen mainScreen].scale; if (key.length >= 8) { NSRange range = [key rangeOfString:@"@2x."]; if (range.location != NSNotFound) {