diff options
author | dinoex <dinoex@FreeBSD.org> | 2010-03-29 22:42:05 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2010-03-29 22:42:05 +0800 |
commit | 94dee80f993f673f162c265b94d90f791c716061 (patch) | |
tree | 93f27aafbc32f467a186659b3875acd570b6b322 /graphics/osg-devel | |
parent | d10fbf34121fbf4f999fdc47e4dc347c23041c84 (diff) | |
download | freebsd-ports-gnome-94dee80f993f673f162c265b94d90f791c716061.tar.gz freebsd-ports-gnome-94dee80f993f673f162c265b94d90f791c716061.tar.zst freebsd-ports-gnome-94dee80f993f673f162c265b94d90f791c716061.zip |
- fix build for png-1.4.1
Diffstat (limited to 'graphics/osg-devel')
-rw-r--r-- | graphics/osg-devel/files/patch-src-osgPlugins-png-ReaderWriterPNG.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/graphics/osg-devel/files/patch-src-osgPlugins-png-ReaderWriterPNG.cpp b/graphics/osg-devel/files/patch-src-osgPlugins-png-ReaderWriterPNG.cpp new file mode 100644 index 000000000000..f4a8c17c7639 --- /dev/null +++ b/graphics/osg-devel/files/patch-src-osgPlugins-png-ReaderWriterPNG.cpp @@ -0,0 +1,20 @@ +--- src/osgPlugins/png/ReaderWriterPNG.cpp.orig 2009-11-17 13:55:52.000000000 +0100 ++++ src/osgPlugins/png/ReaderWriterPNG.cpp 2010-03-29 16:18:38.000000000 +0200 +@@ -178,7 +178,7 @@ + endinfo = png_create_info_struct(png); + + fin.read((char*)header,8); +- if (fin.gcount() == 8 && png_check_sig(header, 8)) ++ if (fin.gcount() == 8 && !png_sig_cmp(header, 0, 8)) + png_set_read_fn(png,&fin,png_read_istream); //Use custom read function that will get data from istream + else + { +@@ -229,7 +229,7 @@ + if (color == PNG_COLOR_TYPE_PALETTE) + png_set_palette_to_rgb(png); + if (color == PNG_COLOR_TYPE_GRAY && depth < 8) +- png_set_gray_1_2_4_to_8(png); ++ png_set_expand_gray_1_2_4_to_8(png); + if (png_get_valid(png, info, PNG_INFO_tRNS)) + png_set_tRNS_to_alpha(png); + |