Lines Matching refs:ximage
59 if (pdp->ximage) { in XCreateDrawable()
60 XDestroyImage(pdp->ximage); in XCreateDrawable()
61 pdp->ximage = NULL; in XCreateDrawable()
68 pdp->ximage = XShmCreateImage(dpy, in XCreateDrawable()
75 if (pdp->ximage != NULL) { in XCreateDrawable()
88 XDestroyImage(pdp->ximage); in XCreateDrawable()
89 pdp->ximage = NULL; in XCreateDrawable()
96 if (pdp->ximage == NULL) { in XCreateDrawable()
98 pdp->ximage = XCreateImage(dpy, in XCreateDrawable()
112 if (pdp->ximage->bits_per_pixel == 24) in XCreateDrawable()
113 pdp->ximage->bits_per_pixel = 32; in XCreateDrawable()
121 if (pdp->ximage) in XDestroyDrawable()
122 XDestroyImage(pdp->ximage); in XDestroyDrawable()
186 XImage *ximage; in swrastXPutImage() local
189 if (!pdp->ximage || shmid != pdp->shminfo.shmid) { in swrastXPutImage()
195 ximage = pdp->ximage; in swrastXPutImage()
196 ximage->bytes_per_line = stride ? stride : bytes_per_line(w * ximage->bits_per_pixel, 32); in swrastXPutImage()
197 ximage->data = data; in swrastXPutImage()
199 ximage->width = ximage->bytes_per_line / ((ximage->bits_per_pixel + 7)/ 8); in swrastXPutImage()
200 ximage->height = h; in swrastXPutImage()
203 XShmPutImage(dpy, drawable, gc, ximage, srcx, srcy, x, y, w, h, False); in swrastXPutImage()
206 XPutImage(dpy, drawable, gc, ximage, srcx, srcy, x, y, w, h); in swrastXPutImage()
208 ximage->data = NULL; in swrastXPutImage()
265 XImage *ximage; in swrastGetImage2() local
267 if (!prp->ximage || prp->shminfo.shmid >= 0) { in swrastGetImage2()
274 ximage = prp->ximage; in swrastGetImage2()
275 ximage->data = data; in swrastGetImage2()
276 ximage->width = w; in swrastGetImage2()
277 ximage->height = h; in swrastGetImage2()
278 ximage->bytes_per_line = stride ? stride : bytes_per_line(w * ximage->bits_per_pixel, 32); in swrastGetImage2()
280 XGetSubImage(dpy, readable, x, y, w, h, ~0L, ZPixmap, ximage, 0, 0); in swrastGetImage2()
282 ximage->data = NULL; in swrastGetImage2()
302 XImage *ximage; in swrastGetImageShm2() local
304 if (!prp->ximage || shmid != prp->shminfo.shmid) { in swrastGetImageShm2()
313 ximage = prp->ximage; in swrastGetImageShm2()
314 ximage->data = prp->shminfo.shmaddr; /* no offset */ in swrastGetImageShm2()
315 ximage->width = w; in swrastGetImageShm2()
316 ximage->height = h; in swrastGetImageShm2()
317 ximage->bytes_per_line = bytes_per_line(w * ximage->bits_per_pixel, 32); in swrastGetImageShm2()
319 XShmGetImage(dpy, readable, ximage, x, y, ~0L); in swrastGetImageShm2()