updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / briquolo / briquolo-libpng.patch
blob983afa27cca203ca91f3e4d0465de6e93d2388f5
1 diff -pur briquolo-0.5.7.orig//src/MOGL/MOGL_Image.cpp briquolo-0.5.7/src/MOGL/MOGL_Image.cpp
2 --- briquolo-0.5.7.orig//src/MOGL/MOGL_Image.cpp 2006-03-07 15:53:33.000000000 -0500
3 +++ briquolo-0.5.7/src/MOGL/MOGL_Image.cpp 2010-03-09 10:50:03.826212996 -0500
4 @@ -183,7 +183,7 @@ bool MOGL_Image::ChargerPNG(const char *
5 info_ptr = png_create_info_struct(png_ptr);
6 if (info_ptr == NULL)
8 - png_destroy_read_struct(&png_ptr, png_infopp_NULL, png_infopp_NULL);
9 + png_destroy_read_struct(&png_ptr, NULL, NULL);
10 return false;
13 @@ -191,7 +191,7 @@ bool MOGL_Image::ChargerPNG(const char *
14 if (setjmp(png_jmpbuf(png_ptr)))
16 // On libère la mémoire
17 - png_destroy_read_struct(&png_ptr, &info_ptr, png_infopp_NULL);
18 + png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
19 return false;
22 @@ -235,7 +235,7 @@ bool MOGL_Image::ChargerPNG(const char *
23 /* Expand grayscale images to the full 8 bits from 1, 2, or 4 bits/pixel */
24 if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8)
26 - png_set_gray_1_2_4_to_8(png_ptr);
27 + png_set_expand_gray_1_2_4_to_8(png_ptr);
30 /* Expand paletted or RGB images with transparency to full alpha channels