137
140
pixmap = XCreatePixmap(display, rootWindow , widthOfScreen, heightOfScreen, depth);
143
if (bgcolor && XParseColor(display, colormap , bgcolor, &xcolor) && XAllocColor(display, colormap, &xcolor)) {
149
if (bgcolor && XParseColor(display, colormap , bgcolor, &xcolor) && XAllocColor(display, colormap, &xcolor)) {
144
150
gcv.foreground = gcv.background = xcolor.pixel;
147
154
gc = XCreateGC(display, pixmap, (GCForeground | GCBackground), &gcv);