Lines Matching defs:display
73 Display *display;
82 /* If a display is in displayList, it means that we have looked to see if
83 the extension exists on the display. If context is not NULL, the
84 display has a default context associated with it. */
88 static DisplayInfo LookupDisplayInfo(Display *display);
115 /* May only be called for a display in the display list. */
118 Display *display,
128 c->displayInfo = LookupDisplayInfo(display);
133 Display *display,
143 d->display = display;
147 d->depthsForScreen = (int *) calloc(ScreenCount(display), sizeof(int));
148 d->validDepths = (int **) calloc(ScreenCount(display), sizeof(int *));
149 d->gcForDepth = (GC **) calloc(ScreenCount(display), sizeof(GC *));
151 for (i = 0; i < ScreenCount(display); i++) {
152 d->validDepths[i] = XListDepths(display, i, &d->depthsForScreen[i]);
159 static DisplayInfo FindDisplayInfo(Display *display)
163 while (d != NULL && d->display != display) d = d->next;
167 static DisplayInfo LookupDisplayInfo(Display *display)
169 DisplayInfo d = FindDisplayInfo(display);
171 if (d == NULL) d = AllocDisplayInfo(display, (DPSContext) NULL);
255 d->gcForDepth[s][i] = XCreateGC(d->display,
258 p = XCreatePixmap(d->display,
261 d->gcForDepth[s][i] = XCreateGC(d->display, p, 0, &v);
262 XFreePixmap(d->display, p);
472 Display *display;
476 /* Get the display */
477 (void) XDPSXIDFromContext(&display, context);
479 if (makeSharedContext) { /* Install as shared ctxt for this display */
480 c = LookupContext(display, context);
483 c = LookupContext(display, context);
495 DPSContext XDPSGetSharedContext(Display *display)
497 DisplayInfo d = LookupDisplayInfo(display);
505 context = XDPSCreateSimpleContext(display,
516 DefaultScreenOfDisplay(display),
517 DefaultDepth(display,
518 DefaultScreen(display)));
555 void XDPSFreeDisplayInfo(Display *display)
561 while (*dp != NULL && (*dp)->display != display) dp = &((*dp)->next);
568 for (i = 0; i < ScreenCount(display); i++) {
576 XFreeGC(display, d->gcForDepth[i][j]);
615 Bool XDPSExtensionPresent(Display *display)
617 DisplayInfo d = LookupDisplayInfo(display);
625 if (XDPSLInit(display, (int *) NULL, (char **) NULL) == -1) {