summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authoragc <agc>1999-07-30 12:33:30 +0000
committeragc <agc>1999-07-30 12:33:30 +0000
commit918e831f8079ee3240b182b1a68ec5c077ada0cf (patch)
tree5f03691e636e7155f7a611d955ad4aca02c6a3ca /x11
parentc72aa4e2f2ff32410c6c92dafc279eed8d1f059e (diff)
downloadpkgsrc-918e831f8079ee3240b182b1a68ec5c077ada0cf.tar.gz
The program will still run if it can't allocate the correct colours,
although the colours themselves may be a tad untraditional. Add a patch to print a warning, but not to exit, if you can't allocate colours.
Diffstat (limited to 'x11')
-rw-r--r--x11/xworld/files/patch-sum3
-rw-r--r--x11/xworld/patches/patch-ab17
2 files changed, 19 insertions, 1 deletions
diff --git a/x11/xworld/files/patch-sum b/x11/xworld/files/patch-sum
index accef08f498..1310831befb 100644
--- a/x11/xworld/files/patch-sum
+++ b/x11/xworld/files/patch-sum
@@ -1,3 +1,4 @@
-$NetBSD: patch-sum,v 1.1.1.1 1999/07/28 17:21:48 hubertf Exp $
+$NetBSD: patch-sum,v 1.2 1999/07/30 12:33:30 agc Exp $
MD5 (patch-aa) = 77c1d0c6752a84a93f7fb566c6ba3a6e
+MD5 (patch-ab) = 4f601e2cf805e2a992fede5305cc0062
diff --git a/x11/xworld/patches/patch-ab b/x11/xworld/patches/patch-ab
new file mode 100644
index 00000000000..79791312bed
--- /dev/null
+++ b/x11/xworld/patches/patch-ab
@@ -0,0 +1,17 @@
+$NetBSD: patch-ab,v 1.1 1999/07/30 12:33:31 agc Exp $
+
+It's not a fatal error if you can't allocate colours - so print
+a warning message, and continue.
+
+--- xworld.c 1999/07/30 12:26:14 1.1
++++ xworld.c 1999/07/30 12:26:35
+@@ -305,7 +305,9 @@
+ xcolor[i].blue = color[i].blue;
+ if (XAllocColor(display, cmap, &xcolor[i]) == 0) {
+ fprintf(stderr, "xworld: can't allocate colors\n");
++#if 0
+ exit(-1);
++#endif
+ }
+ }
+