Lines Matching refs:ximg
590 scrpriv->ximg = NULL; in hostx_init()
888 if (scrpriv->ximg != NULL) { in hostx_screen_init()
894 xcb_image_destroy(scrpriv->ximg); in hostx_screen_init()
898 free(scrpriv->ximg->data); in hostx_screen_init()
899 scrpriv->ximg->data = NULL; in hostx_screen_init()
901 xcb_image_destroy(scrpriv->ximg); in hostx_screen_init()
906 scrpriv->ximg = xcb_image_create_native(HostX.conn, in hostx_screen_init()
915 scrpriv->shmsize = scrpriv->ximg->stride * buffer_height; in hostx_screen_init()
921 xcb_image_destroy(scrpriv->ximg); in hostx_screen_init()
925 scrpriv->ximg->data = scrpriv->shminfo.shmaddr; in hostx_screen_init()
933 scrpriv->ximg = xcb_image_create_native(HostX.conn, in hostx_screen_init()
945 scrpriv->ximg->byte_order = IMAGE_BYTE_ORDER; in hostx_screen_init()
947 scrpriv->ximg->data = in hostx_screen_init()
948 xallocarray(scrpriv->ximg->stride, buffer_height); in hostx_screen_init()
1003 *bytes_per_line = scrpriv->ximg->stride; in hostx_screen_init()
1004 *bits_per_pixel = scrpriv->ximg->bpp; in hostx_screen_init()
1007 return scrpriv->ximg->data; in hostx_screen_init()
1094 xcb_image_put_pixel(scrpriv->ximg, x, y, host_pixel); in hostx_paint_rect()
1101 xcb_image_put_pixel(scrpriv->ximg, x, y, in hostx_paint_rect()
1113 HostX.gc, scrpriv->ximg, in hostx_paint_rect()
1118 xcb_image_t *subimg = xcb_image_subimage(scrpriv->ximg, sx, sy, in hostx_paint_rect()