Lines Matching refs:stdcmap
79 XStandardColormap *stdcmap;
99 || ((stdcmap = XAllocStandardColormap()) == NULL)) {
112 stdcmap->killid = (XID) XCreatePixmap(dpy, win, 1, 1, depth);
114 stdcmap->colormap = cmap;
116 stdcmap->killid = ReleaseByFreeingColormap;
117 stdcmap->colormap = XCreateColormap(dpy, RootWindow(dpy, screen),
120 stdcmap->red_max = red_max;
121 stdcmap->green_max = green_max;
122 stdcmap->blue_max = blue_max;
124 stdcmap->red_mult = stdcmap->green_mult = stdcmap->blue_mult = 1;
126 stdcmap->red_mult = lowbit(vinfo->red_mask);
127 stdcmap->green_mult = lowbit(vinfo->green_mask);
128 stdcmap->blue_mult = lowbit(vinfo->blue_mask);
130 stdcmap->red_mult = (red_max > 0)
132 stdcmap->green_mult = (green_max > 0) ? blue_max + 1 : 0;
133 stdcmap->blue_mult = (blue_max > 0) ? 1 : 0;
135 stdcmap->base_pixel = 0; /* base pixel may change */
136 stdcmap->visualid = vinfo->visualid;
140 status = XmuCreateColormap(dpy, stdcmap);
148 if (stdcmap->killid == ReleaseByFreeingColormap)
149 XFreeColormap(dpy, stdcmap->colormap);
150 else if (stdcmap->killid != None)
151 XFreePixmap(dpy, stdcmap->killid);
153 XFree((char *) stdcmap);
156 return stdcmap;