summaryrefslogtreecommitdiff
blob: 80f90b552801933c428f4cde789888f97fe2d482 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
http://bugs.gentoo.org/389363

--- Source/NSBitmapImageRep+PNG.m
+++ Source/NSBitmapImageRep+PNG.m
@@ -229,7 +229,7 @@ 
     initWithBytesNoCopy: buf
 		 length: bytes_per_row * height];
 
-  if (PNG_INFO_gAMA & png_info->valid)
+  if (png_get_valid(png_struct, png_info, PNG_INFO_gAMA))
   {
     double file_gamma = 2.2;
     if (PNG_FLOATING_POINT)