… | |
… | |
265 | double *kernel = (double *)malloc (size * sizeof (double)); |
265 | double *kernel = (double *)malloc (size * sizeof (double)); |
266 | XFixed *params = (XFixed *)malloc ((size + 2) * sizeof (XFixed)); |
266 | XFixed *params = (XFixed *)malloc ((size + 2) * sizeof (XFixed)); |
267 | rxvt_img *img = new rxvt_img (s, format, x, y, w, h, repeat); |
267 | rxvt_img *img = new rxvt_img (s, format, x, y, w, h, repeat); |
268 | img->alloc (); |
268 | img->alloc (); |
269 | |
269 | |
270 | Picture src = src_picture (); |
|
|
271 | |
|
|
272 | XRenderPictureAttributes pa; |
270 | XRenderPictureAttributes pa; |
273 | pa.repeat = RepeatPad; |
271 | pa.repeat = RepeatPad; |
274 | Picture dst = XRenderCreatePicture (dpy, img->pm, format, CPRepeat, &pa); |
272 | Picture src = XRenderCreatePicture (dpy, pm, format, CPRepeat, &pa); |
|
|
273 | Picture dst = XRenderCreatePicture (dpy, img->pm, format, 0, 0); |
275 | |
274 | |
276 | Pixmap tmp_pm = XCreatePixmap (dpy, pm, w, h, format->depth); |
275 | Pixmap tmp_pm = XCreatePixmap (dpy, pm, w, h, format->depth); |
277 | Picture tmp = XRenderCreatePicture (dpy, tmp_pm , format, CPRepeat, &pa); |
276 | Picture tmp = XRenderCreatePicture (dpy, tmp_pm , format, CPRepeat, &pa); |
278 | XFreePixmap (dpy, tmp_pm); |
277 | XFreePixmap (dpy, tmp_pm); |
279 | |
278 | |