Brace-wraps inline struct initializer

This commit is contained in:
Christopher Bowns 2012-04-12 15:04:09 -07:00
parent cdb651b6a3
commit 2aeed9830e
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ static SDWebImageDecoder *sharedInstance;
CGColorSpaceRelease(colorSpace); CGColorSpaceRelease(colorSpace);
if (!context) return nil; if (!context) return nil;
CGRect rect = (CGRect){CGPointZero, CGImageGetWidth(imageRef), CGImageGetHeight(imageRef)}; CGRect rect = (CGRect){CGPointZero, { CGImageGetWidth(imageRef), CGImageGetHeight(imageRef) } };
CGContextDrawImage(context, rect, imageRef); CGContextDrawImage(context, rect, imageRef);
CGImageRef decompressedImageRef = CGBitmapContextCreateImage(context); CGImageRef decompressedImageRef = CGBitmapContextCreateImage(context);
CGContextRelease(context); CGContextRelease(context);