Lines Matching refs:sdef
83 XColor sdef,xdef;
96 if (XAllocNamedColor(view->dpy,view->opts.cmap,spec,&sdef,&xdef)) {
97 xkb->geom->colors[i].pixel= sdef.pixel;
99 fprintf(stderr,"got pixel %lu for \"%s\"\n",sdef.pixel,spec);
103 if ((!found)&&(XkbLookupCanonicalRGBColor(spec,&sdef))) {
105 sprintf(buf,"#%02x%02x%02x",(sdef.red>>8)&0xff,
106 (sdef.green>>8)&0xff,
107 (sdef.blue>>8)&0xff);
108 if (XAllocNamedColor(view->dpy,view->opts.cmap,buf,&sdef,&xdef)) {
109 xkb->geom->colors[i].pixel= sdef.pixel;
111 fprintf(stderr,"got pixel %lu for \"%s\"\n",sdef.pixel,spec);