Permalink
Browse files

Add explicit cast for [REDACTED]

  • Loading branch information...
Nyx0uf committed Jun 19, 2013
1 parent aa3770d commit c8d56bdab32d94ca8efa6847d160dff8e1946a95
Showing with 2 additions and 2 deletions.
  1. +1 −1 Categories/UIImage+Filtering.m
  2. +1 −1 Helper/NYXImagesHelper.m
@@ -401,7 +401,7 @@ -(UIImage*)grayscale
CGRect imageRect = CGRectMake(0, 0, self.size.width, self.size.height);
CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceGray();
CGContextRef bmContext = CGBitmapContextCreate(NULL, width, height, 8/*Bits per component*/, width * kNyxNumberOfComponentsPerGreyPixel, colorSpace, kCGImageAlphaNone);
CGContextRef bmContext = CGBitmapContextCreate(NULL, width, height, 8/*Bits per component*/, width * kNyxNumberOfComponentsPerGreyPixel, colorSpace, (CGBitmapInfo)kCGImageAlphaNone);
CGColorSpaceRelease(colorSpace);
if (!bmContext)
return nil;
View
@@ -36,7 +36,7 @@ CGImageRef NYXCreateGradientImage(const size_t pixelsWide, const size_t pixelsHi
CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceGray();
// create the bitmap context
CGContextRef gradientBitmapContext = CGBitmapContextCreate(NULL, pixelsWide, pixelsHigh, 8, 0, colorSpace, kCGImageAlphaNone);
CGContextRef gradientBitmapContext = CGBitmapContextCreate(NULL, pixelsWide, pixelsHigh, 8, 0, colorSpace, (CGBitmapInfo)kCGImageAlphaNone);
// define the start and end grayscale values (with the alpha, even though
// our bitmap context doesn't support alpha the gradient requires it)

0 comments on commit c8d56bd

Please sign in to comment.