Lines Matching refs:vinfo
74 (colormap->max * colormap->mult <= vinfo->mask && \
75 lowbit(vinfo->mask) == colormap->mult)
106 XVisualInfo *vinfo; /* matching visual information */
114 if ((vinfo = XGetVisualInfo(dpy, vinfo_mask, &vinfo_template, &n)) == NULL)
122 vpointer = vinfo;
137 for (i=0; i < n; i++, vinfo++) {
138 if (vinfo->visual == DefaultVisual(dpy, screen_number))
145 for (i=0; i < n; i++, vinfo++)
146 if (vinfo->depth > maxdepth) {
147 maxdepth = vinfo->depth;
148 v = vinfo;
150 vinfo = v;
154 if (vinfo->class == PseudoColor || vinfo->class == DirectColor ||
155 vinfo->class == GrayScale)
156 status = readwrite_map(dpy, vinfo, colormap);
157 else if (vinfo->class == TrueColor)
162 status = readonly_map(dpy, vinfo, colormap);
170 readwrite_map(Display *dpy, XVisualInfo *vinfo, XStandardColormap *colormap)
185 if (vinfo->class == DirectColor) {
192 delta = lowbit(vinfo->red_mask) +
193 lowbit(vinfo->green_mask) +
194 lowbit(vinfo->blue_mask);
201 if (ncolors <= 1 || (int) ncolors > vinfo->colormap_size) return 0;
221 if ((pixels = calloc((unsigned) vinfo->colormap_size,
226 vinfo->colormap_size, ncolors)) == 0) {
505 readonly_map(Display *dpy, XVisualInfo *vinfo, XStandardColormap *colormap)
519 if (vinfo->class == StaticColor) {
526 else /* vinfo->class == GrayScale, old style allocation XXX */