Skip to content

Commit

Permalink
Merge pull request peyton#11 from felixLam/pullrequest/warningBitMapInfo
Browse files Browse the repository at this point in the history
Fixes a warning on kCGImageAlphaNone
  • Loading branch information
Peyton Randolph committed Jul 3, 2013
2 parents df7e7aa + 12e62be commit 5ec9d9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MOOMaskedIconView/MOOMaskedIconView.m
Expand Up @@ -916,7 +916,7 @@ CGImageRef CGImageCreateMaskFromCGImage(CGImageRef source, CGSize size)
bytesPerRow = imageSize.width * CGColorSpaceGetNumberOfComponents(colorspace);

// Create bitmap context
CGContextRef context = CGBitmapContextCreate(NULL, imageSize.width, imageSize.height, CGImageGetBitsPerComponent(source), bytesPerRow, colorspace, kCGImageAlphaNone);
CGContextRef context = CGBitmapContextCreate(NULL, imageSize.width, imageSize.height, CGImageGetBitsPerComponent(source), bytesPerRow, colorspace, kCGBitmapAlphaInfoMask & kCGImageAlphaNone);
CGColorSpaceRelease(colorspace);

CGContextSetInterpolationQuality(context, kCGInterpolationLow);
Expand Down

0 comments on commit 5ec9d9a

Please sign in to comment.