Lines Matching defs:display
52 static void alloc_cmaps_for_screen(Display *display, int screen);
53 static void alloc_cmap_for_visual(Display *display, int screen,
55 static void create_colormap(Display *display, XVisualInfo *vinfo,
69 Display *display;
75 /* Try to open the display */
76 if ((display = XOpenDisplay(display_name)) == NULL) {
77 (void)fprintf(stderr, "Error %s: can't open display \"%s\".\n",
84 for (screen = 0; screen < ScreenCount(display); screen++)
85 alloc_cmaps_for_screen(display, screen);
87 alloc_cmaps_for_screen(display, DefaultScreen(display));
93 XSetCloseDownMode(display, RetainPermanent);
95 XCloseDisplay(display);
102 Display *display,
114 if (!XGetRGBColormaps(display, RootWindow(display, screen),
120 available_visuals = XGetVisualInfo(display, VisualScreenMask, &vinfo_template, &num_visuals);
122 default_visualid = XVisualIDFromVisual(DefaultVisual(display, screen));
140 alloc_cmap_for_visual(display, screen, vinfo);
148 alloc_cmap_for_visual(display, screen, &available_visuals[v]);
157 alloc_cmap_for_visual(display, screen, &available_visuals[v]);
165 alloc_cmap_for_visual(display, screen, &available_visuals[v]);
171 Display *display,
200 create_colormap(display, vinfo, &new_cmap);
203 XChangeProperty(display, RootWindow(display, screen),
215 Display *display,
223 colormap = XCreateColormap(display, RootWindow(display, vinfo->screen),
228 XAllocColor(display, colormap, &color);
294 if (!strcmp(argv[option], "-display"))
384 (void)fprintf(stderr, "Usage: %s [-display <display:n.screen>]\n", prog_name);