IMG_ImageIO.m
changeset 466 55801d955e3a
parent 368 8a61842d00ce
child 530 181ef57f85b4
     1.1 --- a/IMG_ImageIO.m	Thu Aug 07 09:03:28 2014 -0400
     1.2 +++ b/IMG_ImageIO.m	Sat Nov 29 12:06:05 2014 -0800
     1.3 @@ -211,24 +211,7 @@
     1.4  
     1.5      CGContextRef bitmap_context;
     1.6      CGBitmapInfo bitmap_info;
     1.7 -
     1.8 -    /* This sets up a color space that results in identical values
     1.9 -     * as the image data itself, which is the same as the standalone
    1.10 -     * libpng loader.
    1.11 -     * Thanks to Allegro. :)
    1.12 -     */
    1.13 -    CGFloat whitePoint[3] = { 0.950, 1.000, 1.089 };
    1.14 -    CGFloat blackPoint[3] = { 0.000, 0.000, 0.000 };
    1.15 -    CGFloat gamma[3] = { 2.2, 2.2, 2.2 };
    1.16 -    CGFloat matrix[9] = {
    1.17 -        0.412, 0.213, 0.019,
    1.18 -        0.358, 0.715, 0.119,
    1.19 -        0.180, 0.072, 0.950
    1.20 -    };
    1.21 -    CGColorSpaceRef color_space =
    1.22 -        CGColorSpaceCreateCalibratedRGB(
    1.23 -                                    whitePoint, blackPoint, gamma, matrix
    1.24 -                                    );
    1.25 +    CGColorSpaceRef color_space = CGColorSpaceCreateDeviceRGB();
    1.26  
    1.27      if (alpha == kCGImageAlphaNone ||
    1.28          alpha == kCGImageAlphaNoneSkipFirst ||