• Home
  • Raw
  • Download

Lines Matching refs:visual_info

419   if (windows->visual_info != (XVisualInfo *) NULL)  in DestroyXResources()
421 XFree(windows->visual_info); in DestroyXResources()
422 windows->visual_info=(XVisualInfo *) NULL; in DestroyXResources()
1151 #define XVisualColormapSize(visual_info) MagickMin((unsigned int) (\ in XBestVisualInfo() argument
1152 (visual_info->klass == TrueColor) || (visual_info->klass == DirectColor) ? \ in XBestVisualInfo()
1153 visual_info->red_mask | visual_info->green_mask | visual_info->blue_mask : \ in XBestVisualInfo()
1154 (unsigned long) visual_info->colormap_size),1UL << visual_info->depth) in XBestVisualInfo()
1176 *visual_info, in XBestVisualInfo() local
1401 visual_info=visual_list; in XBestVisualInfo()
1406 if (XVisualColormapSize(p) > XVisualColormapSize(visual_info)) in XBestVisualInfo()
1407 visual_info=p; in XBestVisualInfo()
1409 if (XVisualColormapSize(p) == XVisualColormapSize(visual_info)) in XBestVisualInfo()
1410 if (rank[p->klass] > rank[visual_info->klass]) in XBestVisualInfo()
1411 visual_info=p; in XBestVisualInfo()
1413 visual_template.visualid=XVisualIDFromVisual(visual_info->visual); in XBestVisualInfo()
1419 visual_info=XGetVisualInfo(display,visual_mask,&visual_template, in XBestVisualInfo()
1421 if ((number_visuals == 0) || (visual_info == (XVisualInfo *) NULL)) in XBestVisualInfo()
1423 return(visual_info); in XBestVisualInfo()
1703 XMakeStandardColormap(display,windows->visual_info,resource_info,image, in XConfigureImageColormap()
2000 if (windows->visual_info->colormap_size != 0) in XDisplayImageInfo()
2002 windows->visual_info->colormap_size); in XDisplayImageInfo()
2735 MagickPrivate void XFreeResources(Display *display,XVisualInfo *visual_info, in XFreeResources() argument
2754 if (window_info->id != XRootWindow(display,visual_info->screen)) in XFreeResources()
2784 (void) XFreeStandardColormap(display,visual_info,map_info,pixel); in XFreeResources()
2790 if (visual_info != (XVisualInfo *) NULL) in XFreeResources()
2791 (void) XFree((void *) visual_info); in XFreeResources()
2830 const XVisualInfo *visual_info,XStandardColormap *map_info,XPixelInfo *pixel) in XFreeStandardColormap() argument
2837 assert(visual_info != (XVisualInfo *) NULL); in XFreeStandardColormap()
2842 if (map_info->colormap != XDefaultColormap(display,visual_info->screen)) in XFreeStandardColormap()
2846 if ((visual_info->klass != TrueColor) && in XFreeStandardColormap()
2847 (visual_info->klass != DirectColor)) in XFreeStandardColormap()
2932 MagickPrivate void XGetMapInfo(const XVisualInfo *visual_info, in XGetMapInfo() argument
2939 assert(visual_info != (XVisualInfo *) NULL); in XGetMapInfo()
2942 map_info->red_max=visual_info->red_mask; in XGetMapInfo()
2950 map_info->green_max=visual_info->green_mask; in XGetMapInfo()
2958 map_info->blue_max=visual_info->blue_mask; in XGetMapInfo()
3008 const XVisualInfo *visual_info,const XStandardColormap *map_info, in XGetPixelInfo() argument
3048 assert(visual_info != (XVisualInfo *) NULL); in XGetPixelInfo()
3057 MagickMax((int) pixel->colors,visual_info->colormap_size)+MaxNumberPens; in XGetPixelInfo()
4559 MagickPrivate void XGetWindowInfo(Display *display,XVisualInfo *visual_info, in XGetWindowInfo() argument
4568 assert(visual_info != (XVisualInfo *) NULL); in XGetWindowInfo()
4598 window->x=XDisplayWidth(display,visual_info->screen) >> 1; in XGetWindowInfo()
4599 window->y=XDisplayWidth(display,visual_info->screen) >> 1; in XGetWindowInfo()
4626 window->screen=visual_info->screen; in XGetWindowInfo()
4627 window->root=XRootWindow(display,visual_info->screen); in XGetWindowInfo()
4628 window->visual=visual_info->visual; in XGetWindowInfo()
4629 window->storage_class=(unsigned int) visual_info->klass; in XGetWindowInfo()
4630 window->depth=(unsigned int) visual_info->depth; in XGetWindowInfo()
4631 window->visual_info=visual_info; in XGetWindowInfo()
5228 windows->visual_info= in XInitializeWindows()
5232 if ((windows->visual_info == (XVisualInfo *) NULL) || in XInitializeWindows()
5240 windows->visual_info->visualid); in XInitializeWindows()
5242 XVisualClassName(windows->visual_info->klass)); in XInitializeWindows()
5244 windows->visual_info->depth); in XInitializeWindows()
5246 " size of colormap: %d entries",windows->visual_info->colormap_size); in XInitializeWindows()
5249 windows->visual_info->red_mask,windows->visual_info->green_mask, in XInitializeWindows()
5250 windows->visual_info->blue_mask); in XInitializeWindows()
5253 windows->visual_info->bits_per_rgb); in XInitializeWindows()
5267 root_window=XRootWindow(display,windows->visual_info->screen); in XInitializeWindows()
7717 XVisualInfo *visual_info,XResourceInfo *resource_info,Image *image, in XMakeStandardColormap() argument
7743 assert(visual_info != (XVisualInfo *) NULL); in XMakeStandardColormap()
7752 XGetPixelInfo(display,visual_info,map_info,resource_info,image, in XMakeStandardColormap()
7807 XGetPixelInfo(display,visual_info,map_info,resource_info,image, in XMakeStandardColormap()
7827 if ((visual_info->klass != DirectColor) && in XMakeStandardColormap()
7828 (visual_info->klass != TrueColor)) in XMakeStandardColormap()
7830 ((int) image->colors > visual_info->colormap_size)) in XMakeStandardColormap()
7839 quantize_info.number_colors=(size_t) visual_info->colormap_size; in XMakeStandardColormap()
7845 (void) XFreeStandardColormap(display,visual_info,map_info,pixel); in XMakeStandardColormap()
7846 colormap=XDefaultColormap(display,visual_info->screen); in XMakeStandardColormap()
7847 if (visual_info->visual != XDefaultVisual(display,visual_info->screen)) in XMakeStandardColormap()
7848 colormap=XCreateColormap(display,XRootWindow(display,visual_info->screen), in XMakeStandardColormap()
7849 visual_info->visual,visual_info->klass == DirectColor ? in XMakeStandardColormap()
7857 XGetMapInfo(visual_info,colormap,map_info); in XMakeStandardColormap()
7858 XGetPixelInfo(display,visual_info,map_info,resource_info,image,pixel); in XMakeStandardColormap()
7862 switch (visual_info->klass) in XMakeStandardColormap()
7872 visual_info->colormap_size,sizeof(*colors)); in XMakeStandardColormap()
7883 if (visual_info->klass != StaticColor) in XMakeStandardColormap()
7912 visual_info->colormap_size,sizeof(*colors)); in XMakeStandardColormap()
8020 if (visual_info->klass != PseudoColor) in XMakeStandardColormap()
8037 visual_info->colormap_size,sizeof(*server_colors)); in XMakeStandardColormap()
8041 for (x=visual_info->colormap_size-1; x >= 0; x--) in XMakeStandardColormap()
8044 (int) MagickMin((unsigned int) visual_info->colormap_size,256)); in XMakeStandardColormap()
8057 if (visual_info->klass != PseudoColor) in XMakeStandardColormap()
8065 visual_info->colormap_size,&color); in XMakeStandardColormap()
8069 if ((int) image->colors < visual_info->colormap_size) in XMakeStandardColormap()
8075 (visual_info->colormap_size-image->colors),256); in XMakeStandardColormap()
8093 XRootWindow(display,visual_info->screen),visual_info->visual, in XMakeStandardColormap()
8099 if ((int) image->colors < visual_info->colormap_size) in XMakeStandardColormap()
8106 (visual_info->colormap_size-image->colors),256); in XMakeStandardColormap()
8114 XDefaultColormap(display,visual_info->screen), in XMakeStandardColormap()
8146 if (visual_info->klass != PseudoColor) in XMakeStandardColormap()
8173 (((int) (map_info->red_max+1) == visual_info->colormap_size) && in XMakeStandardColormap()
8174 ((int) (map_info->green_max+1) == visual_info->colormap_size) && in XMakeStandardColormap()
8175 ((int) (map_info->blue_max+1) == visual_info->colormap_size)) ? in XMakeStandardColormap()
8178 number_colors=(size_t) visual_info->colormap_size; in XMakeStandardColormap()
8222 if ((visual_info->klass == DirectColor) && in XMakeStandardColormap()
8223 (colormap != XDefaultColormap(display,visual_info->screen))) in XMakeStandardColormap()
8231 if ((visual_info->klass != DirectColor) && in XMakeStandardColormap()
8232 (visual_info->klass != TrueColor)) in XMakeStandardColormap()
9016 *visual_info; in XRenderImage() local
9042 visual_info=(XVisualInfo *) NULL; in XRenderImage()
9054 visual_info=XBestVisualInfo(display,map_info,&resource_info); in XRenderImage()
9055 if (visual_info == (XVisualInfo *) NULL) in XRenderImage()
9057 XFreeResources(display,visual_info,map_info,&pixel,font_info, in XRenderImage()
9066 XGetMapInfo(visual_info,XDefaultColormap(display,visual_info->screen), in XRenderImage()
9068 XGetPixelInfo(display,visual_info,map_info,&resource_info,(Image *) NULL, in XRenderImage()
9070 pixel.annotate_context=XDefaultGC(display,visual_info->screen); in XRenderImage()
9077 XFreeResources(display,visual_info,map_info,&pixel,font_info, in XRenderImage()