• Home
  • Raw
  • Download

Lines Matching refs:xi

61 static XImage *p_xi(XImage *xi, Visual *visual, int win_depth, int *w);
70 static XImage *cmap_xi(XImage *xi, Window win, int win_depth);
819 static XImage *p_xi(XImage *xi, Visual *visual, int win_depth, int *w) { in p_xi() argument
823 if (!xi || !visual || !win_depth || !w) {} in p_xi()
826 if (xi == NULL || *w < dpy_x) { in p_xi()
828 if (xi) { in p_xi()
829 XDestroyImage(xi); in p_xi()
841 xi = XCreateImage(dpy, visual, win_depth, ZPixmap, 0, d, in p_xi()
844 return xi; in p_xi()
863 XImage *xi; in poll_line()
905 xi = xi8 = p_xi(xi8, attr.visual, attr.depth, &xi8_w); in poll_line()
915 xi = xi24 = p_xi(xi24, attr.visual, 24, &xi24_w); in poll_line()
941 xi_r = XGetSubImage(dpy, win, xo, yo, w, 1, AllPlanes, ZPixmap, xi, in poll_line()
953 src = xi->data; in poll_line()
1522 static XImage *cmap_xi(XImage *xi, Window win, int win_depth) { in cmap_xi() argument
1524 if (!xi || !win || !win_depth) {} in cmap_xi()
1530 if (xi) { in cmap_xi()
1531 XDestroyImage(xi); in cmap_xi()
1603 XImage *xi = NULL, *xi_r;
1619 xi = xi_24;
1630 xi = xi_8;
1634 if (xi == NULL) {
1661 xi = XGetImage(dpy, win, xo, yo, wu, hu, AllPlanes, ZPixmap);
1662 xi_r = xi;
1665 ZPixmap, xi, 0, 0);
1673 if (db24 > 1) fprintf(stderr, "xi-fail: 0x%p trap=%d %d %d %d %d\n", (void *)xi, trapped_xerror, x…
1676 … fprintf(stderr, "xi: 0x%p %d %d %d %d -- %d %d\n", (void *)xi, xo, yo, w, h, xi->width, xi->heig…
1680 if (xi->depth > 16 && xi->depth != 24) {
1683 XDestroyImage(xi);
1686 if (db24) fprintf(stderr, "xi: wrong depth: %d\n", xi->depth);
1692 if (xi->depth == 24) {
1703 src = xi->data;
1713 src += xi->bytes_per_line;
1717 } else if (xi->depth <= 16) {
1735 src = xi->data;
1760 src += xi->bytes_per_line;
1768 XDestroyImage(xi);