summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2005-08-04 16:11:28 +0000
committerrillig <rillig@pkgsrc.org>2005-08-04 16:11:28 +0000
commit6857dc3de1e8e2f1557358ed3467ea69d10ab39d (patch)
tree95603a7edc139e30593184f499cfb06a3bb71991 /graphics
parent117aa5d5ec122abb09fdf48020c624d4699c2cd3 (diff)
downloadpkgsrc-6857dc3de1e8e2f1557358ed3467ea69d10ab39d.tar.gz
Added a patch that moves a variable declaration in above the code. This is
needed for ISO C90 compliance.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/libgdiplus/distinfo3
-rw-r--r--graphics/libgdiplus/patches/patch-ad23
2 files changed, 25 insertions, 1 deletions
diff --git a/graphics/libgdiplus/distinfo b/graphics/libgdiplus/distinfo
index 6486961849c..006cd416b26 100644
--- a/graphics/libgdiplus/distinfo
+++ b/graphics/libgdiplus/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.11 2005/07/31 19:23:00 recht Exp $
+$NetBSD: distinfo,v 1.12 2005/08/04 16:11:28 rillig Exp $
SHA1 (libgdiplus-1.1.8.tar.gz) = b606e7320713578e6e827aee567cda6ddab98c0d
RMD160 (libgdiplus-1.1.8.tar.gz) = ff5bd2a8213a0f256c6f3d5bef4b0347fb972b51
Size (libgdiplus-1.1.8.tar.gz) = 1353269 bytes
SHA1 (patch-aa) = 7f63e4367b5faef0bd18e1cffee2e56e11dc88b9
SHA1 (patch-ac) = d3f1e99c8a50f211ab6202ad812e9e4d847ccdab
+SHA1 (patch-ad) = f7b4d2530fa21bb8a971eb8e8e144e89b2debf91
diff --git a/graphics/libgdiplus/patches/patch-ad b/graphics/libgdiplus/patches/patch-ad
new file mode 100644
index 00000000000..57d6baa759b
--- /dev/null
+++ b/graphics/libgdiplus/patches/patch-ad
@@ -0,0 +1,23 @@
+$NetBSD: patch-ad,v 1.1 2005/08/04 16:11:28 rillig Exp $
+
+Needed for ISO C90 compliance.
+
+--- src/bitmap.c.orig Mon Jun 13 21:17:10 2005
++++ src/bitmap.c Thu Aug 4 18:05:51 2005
+@@ -284,6 +284,7 @@ GdipCreateBitmapFromScan0 (int width, in
+ int bytes_needed = header_size + palette_entries * sizeof(ARGB);
+
+ int i;
++ const unsigned int *default_palette;
+
+ result->image.palette = malloc (bytes_needed);
+
+@@ -292,8 +293,6 @@ GdipCreateBitmapFromScan0 (int width, in
+
+ result->image.palette->Flags = 0;
+ result->image.palette->Count = palette_entries;
+-
+- const unsigned int *default_palette;
+
+ switch (format)
+ {