Skip to content

Commit

Permalink
Merge pull request #11 from PeteC/master
Browse files Browse the repository at this point in the history
Fix warning calling CGBitmapContextCreate
  • Loading branch information
jerryhjones committed Aug 14, 2013
2 parents 608b73e + 72a89b3 commit 7c0c069
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SMPageControl.m
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ - (CGImageRef)createMaskForImage:(UIImage *)image CF_RETURNS_RETAINED
size_t pixelsWide = image.size.width * image.scale;
size_t pixelsHigh = image.size.height * image.scale;
int bitmapBytesPerRow = (pixelsWide * 1);
CGContextRef context = CGBitmapContextCreate(NULL, pixelsWide, pixelsHigh, CGImageGetBitsPerComponent(image.CGImage), bitmapBytesPerRow, NULL, kCGImageAlphaOnly);
CGContextRef context = CGBitmapContextCreate(NULL, pixelsWide, pixelsHigh, CGImageGetBitsPerComponent(image.CGImage), bitmapBytesPerRow, NULL, (CGBitmapInfo)kCGImageAlphaOnly);
CGContextTranslateCTM(context, 0.f, pixelsHigh);
CGContextScaleCTM(context, 1.0f, -1.0f);

Expand Down

0 comments on commit 7c0c069

Please sign in to comment.