1 --- imlib-1.9.15/gdk_imlib/io-png.c.vanilla 2020-09-30 20:37:35.328046472 +0200
2 +++ imlib-1.9.15/gdk_imlib/io-png.c 2020-09-30 20:38:51.439089627 +0200
7 - if (setjmp(png_ptr->jmpbuf))
8 + if (setjmp(png_jmpbuf(png_ptr)))
10 png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
14 - if (info_ptr->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
15 + if (png_get_color_type(png_ptr, info_ptr) == PNG_COLOR_TYPE_RGB_ALPHA)
17 png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
23 - if (setjmp(png_ptr->jmpbuf))
24 + if (setjmp(png_jmpbuf(png_ptr)))
26 png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
30 - if (info_ptr->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
31 + if (png_get_color_type(png_ptr, info_ptr) == PNG_COLOR_TYPE_RGB_ALPHA)
33 png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
39 - if (setjmp(png_ptr->jmpbuf))
40 + if (setjmp(png_jmpbuf(png_ptr)))
42 png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
46 - if (info_ptr->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
47 + if (png_get_color_type(png_ptr, info_ptr) == PNG_COLOR_TYPE_RGB_ALPHA)
49 png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
52 png_destroy_write_struct(&png_ptr, (png_infopp) NULL);
55 - if (setjmp(png_ptr->jmpbuf))
56 + if (setjmp(png_jmpbuf(png_ptr)))
59 png_destroy_write_struct(&png_ptr, (png_infopp) NULL);
60 --- imlib-1.9.15/Imlib/utils.c.vanilla 2020-09-30 20:35:53.289329273 +0200
61 +++ imlib-1.9.15/Imlib/utils.c 2020-09-30 20:39:24.082679241 +0200
62 @@ -1959,13 +1959,13 @@
66 - if (setjmp(png_ptr->jmpbuf))
67 + if (setjmp(png_jmpbuf(png_ptr)))
69 png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
73 - if (info_ptr->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
74 + if (png_get_color_type(png_ptr, info_ptr) == PNG_COLOR_TYPE_RGB_ALPHA)
76 png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
78 --- imlib-1.9.15/Imlib/save.c.vanilla 2020-09-30 20:36:32.528835965 +0200
79 +++ imlib-1.9.15/Imlib/save.c 2020-09-30 20:36:40.164739969 +0200
81 png_destroy_write_struct(&png_ptr, (png_infopp) NULL);
84 - if (setjmp(png_ptr->jmpbuf))
85 + if (setjmp(png_jmpbuf(png_ptr)))
88 png_destroy_write_struct(&png_ptr, (png_infopp) NULL);
89 --- imlib-1.9.15/Imlib/load.c.vanilla 2020-09-30 20:44:13.883035957 +0200
90 +++ imlib-1.9.15/Imlib/load.c 2020-09-30 20:44:35.806760339 +0200
92 png_destroy_read_struct(&png_ptr, NULL, NULL);
95 - if (setjmp(png_ptr->jmpbuf))
96 + if (setjmp(png_jmpbuf(png_ptr)))
98 png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
101 - if (info_ptr->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
102 + if (png_get_color_type(png_ptr, info_ptr) == PNG_COLOR_TYPE_RGB_ALPHA)
104 png_destroy_read_struct(&png_ptr, &info_ptr, NULL);