Revert MAX() function in `SDImageScaleFactorForKey`

This commit is contained in:
kinarob 2019-04-26 17:34:13 +08:00
parent 2dd9fe4d9b
commit e837e0a3be
1 changed files with 2 additions and 2 deletions

View File

@ -39,14 +39,14 @@ inline CGFloat SDImageScaleFactorForKey(NSString * _Nullable key) {
NSString *fileScale = [NSString stringWithFormat:@"@%@x.", scaleFactor];
if ([key containsString:fileScale]) {
scale = scaleFactor.doubleValue;
return MAX(scale, 1);
return scale;
}
if (isURL) {
// %402x. for url encode
NSString *urlScale = [NSString stringWithFormat:@"%%40%@x.", scaleFactor];
if ([key containsString:urlScale]) {
scale = scaleFactor.doubleValue;
return MAX(scale, 1);
return scale;
}
}
}