1 /* See LICENSE file for copyright and license details. */
6 getcolor(DC *dc, const char *colstr) {
7 Colormap cmap = DefaultColormap(dc->dpy, DefaultScreen(dc->dpy));
10 if(!XAllocNamedColor(dc->dpy, cmap, colstr, &color, &color))
11 eprint("cannot allocate color '%s'\n", colstr);