Merge pull request #91 from andybee/master

@2x retina support is broken when images pass through UIImage (ForceDecode) addition
This commit is contained in:
Olivier Poitrey 2012-04-04 05:36:25 -07:00
commit e63e925821
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ static SDWebImageDecoder *sharedInstance;
CGImageRef decompressedImageRef = CGBitmapContextCreateImage(context);
CGContextRelease(context);
UIImage *decompressedImage = [[UIImage alloc] initWithCGImage:decompressedImageRef];
UIImage *decompressedImage = [[UIImage alloc] initWithCGImage:decompressedImageRef scale:image.scale orientation:UIImageOrientationUp];
CGImageRelease(decompressedImageRef);
return SDWIReturnAutoreleased(decompressedImage);
}