x11-misc/xrootconsole: remove unused patch
authorMichael Mair-Keimberger (asterix) <m.mairkeimberger@gmail.com>
Sat, 18 Feb 2017 15:33:13 +0000 (16:33 +0100)
committerDavid Seifert <soap@gentoo.org>
Sat, 18 Feb 2017 22:08:28 +0000 (23:08 +0100)
Closes: https://github.com/gentoo/gentoo/pull/4020

x11-misc/xrootconsole/files/xrootconsole-0.4.parse-color.patch [deleted file]

diff --git a/x11-misc/xrootconsole/files/xrootconsole-0.4.parse-color.patch b/x11-misc/xrootconsole/files/xrootconsole-0.4.parse-color.patch
deleted file mode 100644 (file)
index 2a0d049..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-diff -u xrootconsole-0.4/util.c xrootconsole-0.4.new/util.c
---- a/util.c   2000-10-10 04:17:53.000000000 +0200
-+++ b/util.c   2004-02-17 23:59:45.000000000 +0100
-@@ -53,16 +53,16 @@
- unsigned long load_color(const char* s, Display *dpy) {
--    XColor ce, cs;
-+    XColor ce;
-     Colormap colormap = DefaultColormap(dpy, DefaultScreen(dpy));
--    if (XLookupColor(dpy, colormap, s, &ce, &cs)) {
-+    if (XParseColor(dpy, colormap, s, &ce)) {
-         if (XAllocColor(dpy, colormap, &ce)) return ce.pixel;
-       
-         fprintf(stderr, "Warning: could not allocate color\n");
-         return WhitePixel(dpy, DefaultScreen(dpy));
-     }
--    fprintf(stderr, "Warning: could not lookup color\n");
-+    fprintf(stderr, "Warning: could not parse color\n");
-     return WhitePixel(dpy, DefaultScreen(dpy));
- }