1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/misc/magicpoint/files/patch-png.c
2012-06-01 05:26:28 +00:00

21 lines
544 B
C

--- image/png.c.orig 2001-04-11 10:37:00.000000000 +0200
+++ image/png.c 2012-05-05 08:48:02.000000000 +0200
@@ -86,7 +86,7 @@
return NULL;
}
- if (setjmp(png_ptr->jmpbuf)) {
+ if (setjmp(png_jmpbuf(png_ptr))) {
png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp)NULL);
fclose(fp);
return NULL;
@@ -134,7 +134,7 @@
}
if (colortype == PNG_COLOR_TYPE_GRAY && bitdepth < 8){
- png_set_gray_1_2_4_to_8(png_ptr);
+ png_set_expand_gray_1_2_4_to_8(png_ptr);
}
if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS)){