summaryrefslogtreecommitdiff
path: root/x11/hsetroot/patches
diff options
context:
space:
mode:
authorkristerw <kristerw>2005-07-25 03:14:09 +0000
committerkristerw <kristerw>2005-07-25 03:14:09 +0000
commit8c1a115467d26bba94fd59c849120fb40abce961 (patch)
treeed8d1cf306597741f167e6b04f50d820bc7eb42a /x11/hsetroot/patches
parent7512e8931b98841fe535f4ec72f388bad67c51f6 (diff)
downloadpkgsrc-8c1a115467d26bba94fd59c849120fb40abce961.tar.gz
Fix C99 variable declarations to make this pkg compile with gcc 2.95.
Diffstat (limited to 'x11/hsetroot/patches')
-rw-r--r--x11/hsetroot/patches/patch-aa19
1 files changed, 19 insertions, 0 deletions
diff --git a/x11/hsetroot/patches/patch-aa b/x11/hsetroot/patches/patch-aa
new file mode 100644
index 00000000000..b03d5b74fe1
--- /dev/null
+++ b/x11/hsetroot/patches/patch-aa
@@ -0,0 +1,19 @@
+$NetBSD: patch-aa,v 1.1 2005/07/25 03:14:09 kristerw Exp $
+
+--- src/hsetroot.c.orig Mon Jul 25 04:56:26 2005
++++ src/hsetroot.c Mon Jul 25 04:57:46 2005
+@@ -179,11 +179,12 @@
+ if (alpha < 255)
+ {
+ // Create alpha-override mask
++ Imlib_Color_Modifier modifier;
++ DATA8 red[256], green[256], blue[256], alph[256];
+ imlib_image_set_has_alpha (1);
+- Imlib_Color_Modifier modifier = imlib_create_color_modifier ();
++ modifier = imlib_create_color_modifier ();
+ imlib_context_set_color_modifier (modifier);
+
+- DATA8 red[256], green[256], blue[256], alph[256];
+ imlib_get_color_modifier_tables (red, green, blue, alph);
+ for (o = 0; o < 256; o++)
+ alph[o] = (DATA8) alpha;