Lines Matching refs:cmap
1176 Colormap cmap;
1179 cmap = XCreateColormap(dsp, root[screen], vis, AllocNone);
1181 XAllocNamedColor(dsp, cmap, "White", &sswhite[screen], &tmp);
1182 XAllocNamedColor(dsp, cmap, "Black", &ssblack[screen], &tmp);
1185 if (!XAllocNamedColor(dsp, cmap, background,
1187 XAllocNamedColor(dsp, cmap, "White", &bgcol[screen], &tmp);
1189 if (!XAllocNamedColor(dsp, cmap, foreground,
1191 XAllocNamedColor(dsp, cmap, "Black", &fgcol[screen], &tmp);
1203 if (!XAllocNamedColor(dsp, cmap, background,
1206 XAllocNamedColor(dsp, cmap, "White", &bgcol[screen], &tmp);
1208 if (!XAllocNamedColor(dsp, cmap, foreground,
1211 XAllocNamedColor(dsp, cmap, "Black", &fgcol[screen], &tmp);
1224 if (!XAllocColor(dsp, cmap, &xcolor))
1237 xswa.colormap = cmap; /* In DEBUG mode, we do not see this */
1263 xswa.colormap = cmap; /* In DEBUG mode, we do not see this */
1274 XInstallColormap(dsp, cmap);