pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/hsetroot Fix C99 variable declarations to make thi...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4c9f882ff26d
branches:  trunk
changeset: 497314:4c9f882ff26d
user:      kristerw <kristerw%pkgsrc.org@localhost>
date:      Mon Jul 25 03:14:09 2005 +0000

description:
Fix C99 variable declarations to make this pkg compile with gcc 2.95.

diffstat:

 x11/hsetroot/distinfo         |   3 ++-
 x11/hsetroot/patches/patch-aa |  19 +++++++++++++++++++
 2 files changed, 21 insertions(+), 1 deletions(-)

diffs (34 lines):

diff -r e4ba900ec0a2 -r 4c9f882ff26d x11/hsetroot/distinfo
--- a/x11/hsetroot/distinfo     Mon Jul 25 01:39:10 2005 +0000
+++ b/x11/hsetroot/distinfo     Mon Jul 25 03:14:09 2005 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2005/05/22 09:16:28 jmmv Exp $
+$NetBSD: distinfo,v 1.2 2005/07/25 03:14:09 kristerw Exp $
 
 SHA1 (hsetroot-1.0.2.tar.gz) = a39e0fff11eb17e5432761aabcd8b68242210bb5
 RMD160 (hsetroot-1.0.2.tar.gz) = 0aadf0308ec0068525babca338a35cc3899c1dc9
 Size (hsetroot-1.0.2.tar.gz) = 125535 bytes
+SHA1 (patch-aa) = 72abcf8b764bd9b9109915da7da3a370f274bdf3
diff -r e4ba900ec0a2 -r 4c9f882ff26d x11/hsetroot/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/hsetroot/patches/patch-aa     Mon Jul 25 03:14:09 2005 +0000
@@ -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;



Home | Main Index | Thread Index | Old Index