Brace-wraps inline struct initializer
This commit is contained in:
parent
cdb651b6a3
commit
2aeed9830e
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue