Skip to content

Commit

Permalink
set as default the device's screen scale
Browse files Browse the repository at this point in the history
  • Loading branch information
mythodeia committed Jul 15, 2015
1 parent ae11cf7 commit dcde40f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SDWebImage/SDWebImageCompat.m
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
}
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) {
Expand Down

0 comments on commit dcde40f

Please sign in to comment.