PNG patch by Thomase Klausner.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31970 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2011-01-29 14:44:01 +00:00
parent 3da944c1dd
commit 63744bc165
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2011-01-29 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSBitmapImageRep+PNG.m (_initBitmapFromPNG:): Use
function to check whether gamma is valid.
Patch by Thomas Klausner.
2011-01-27 Wolfgang Lux <wolfgang.lux@gmail.com>
* Source/NSApplication.m (-terminate:): Send message to the

View file

@ -231,7 +231,7 @@ static void reader_func(png_structp png_struct, png_bytep data,
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)