diff options
author | agc <agc@pkgsrc.org> | 1999-07-30 12:33:30 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 1999-07-30 12:33:30 +0000 |
commit | 02121cff470e87e56fb95206464304b8e0f87f29 (patch) | |
tree | 5f03691e636e7155f7a611d955ad4aca02c6a3ca /x11 | |
parent | 7ac178ce42b698cb0c0c7a34baa6d908b10e99b6 (diff) | |
download | pkgsrc-02121cff470e87e56fb95206464304b8e0f87f29.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-sum | 3 | ||||
-rw-r--r-- | x11/xworld/patches/patch-ab | 17 |
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 + } + } + |