aboutsummaryrefslogtreecommitdiffstats
path: root/editors
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2010-04-02 00:25:59 +0800
committerdinoex <dinoex@FreeBSD.org>2010-04-02 00:25:59 +0800
commit61fe99d958482ad555e7d8102b363d8a760c5946 (patch)
tree09c46c1a1e41b7ba29af70af35841527485f339b /editors
parent9f192e8ad5a37fa473f1b7049c67fd340782a69e (diff)
downloadfreebsd-ports-gnome-61fe99d958482ad555e7d8102b363d8a760c5946.tar.gz
freebsd-ports-gnome-61fe99d958482ad555e7d8102b363d8a760c5946.tar.zst
freebsd-ports-gnome-61fe99d958482ad555e7d8102b363d8a760c5946.zip
- fix build for png-1.4.1
Diffstat (limited to 'editors')
-rw-r--r--editors/koffice-kde3/files/patch-filters-krita-png-kis_png_converter.cc20
-rw-r--r--editors/koffice-kde3/files/patch-krita-plugins-filters-cimg-CImg.h20
2 files changed, 40 insertions, 0 deletions
diff --git a/editors/koffice-kde3/files/patch-filters-krita-png-kis_png_converter.cc b/editors/koffice-kde3/files/patch-filters-krita-png-kis_png_converter.cc
new file mode 100644
index 000000000000..7ab9869c379a
--- /dev/null
+++ b/editors/koffice-kde3/files/patch-filters-krita-png-kis_png_converter.cc
@@ -0,0 +1,20 @@
+--- filters/krita/png/kis_png_converter.cc.orig 2007-05-30 23:39:37.000000000 +0200
++++ filters/krita/png/kis_png_converter.cc 2010-04-01 14:09:11.000000000 +0200
+@@ -162,7 +162,7 @@
+ }
+ png_byte signature[8];
+ fread(signature, 1, 8, fp);
+- if (!png_check_sig(signature, 8))
++ if (png_sig_cmp(signature, 0, 8))
+ {
+ return (KisImageBuilder_RESULT_BAD_FETCH);
+ }
+@@ -785,7 +785,7 @@
+
+ void KisPNGConverter::progress(png_structp png_ptr, png_uint_32 row_number, int pass)
+ {
+- if(png_ptr == NULL || row_number > PNG_MAX_UINT || pass > 7) return;
++ if(png_ptr == NULL || row_number > PNG_UINT_31_MAX || pass > 7) return;
+ // setProgress(row_number);
+ }
+
diff --git a/editors/koffice-kde3/files/patch-krita-plugins-filters-cimg-CImg.h b/editors/koffice-kde3/files/patch-krita-plugins-filters-cimg-CImg.h
new file mode 100644
index 000000000000..0ea8a449547d
--- /dev/null
+++ b/editors/koffice-kde3/files/patch-krita-plugins-filters-cimg-CImg.h
@@ -0,0 +1,20 @@
+--- krita/plugins/filters/cimg/CImg.h.orig 2007-05-30 23:40:02.000000000 +0200
++++ krita/plugins/filters/cimg/CImg.h 2010-04-01 13:09:06.000000000 +0200
+@@ -14840,7 +14840,7 @@
+ png_uint_32 width, height;
+ int bit_depth, color_type, interlace_type;
+ png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type, &interlace_type,
+- int_p_NULL, int_p_NULL);
++ NULL, NULL);
+ int new_bit_depth = bit_depth;
+ int new_color_type = color_type;
+
+@@ -14851,7 +14851,7 @@
+ new_bit_depth = 8;
+ }
+ if (new_color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8){
+- png_set_gray_1_2_4_to_8(png_ptr);
++ png_set_extend_gray_1_2_4_to_8(png_ptr);
+ new_bit_depth = 8;
+ }
+ if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS))