reverting

This commit is contained in:
arg@mmvi committed 2006-09-26 13:39:00 +02:00
1 parent 3b590beda2
commit 14133be5bd
3 files changed
+7 -9

No files matched your search

+2 -3
View File
@@ -76,12 +76,11 @@ drawtext(const char *text, unsigned long col[ColLast]) {
}
unsigned long
getcolor(const char *colstr, const char *alternate) {
getcolor(const char *colstr) {
Colormap cmap = DefaultColormap(dpy, screen);
XColor color;
if(XAllocNamedColor(dpy, cmap, colstr, &color, &color) != Success)
XAllocNamedColor(dpy, cmap, alternate, &color, &color);
XAllocNamedColor(dpy, cmap, colstr, &color, &color);
return color.pixel;
}