author | arg@mmvi |
Tue, 26 Sep 2006 13:49:16 +0200 | |
changeset 495 | 3a812750f983 |
parent 494 | 36f9bb3da949 |
child 496 | 202416b41e80 |
--- a/draw.c Tue Sep 26 13:30:30 2006 +0200 +++ b/draw.c Tue Sep 26 13:49:16 2006 +0200 @@ -149,7 +149,8 @@ Colormap cmap = DefaultColormap(dpy, screen); XColor color; - XAllocNamedColor(dpy, cmap, colstr, &color, &color); + if(!XAllocNamedColor(dpy, cmap, colstr, &color, &color)) + eprint("error, cannot allocate color '%s'\n", colstr); return color.pixel; }