… | |
… | |
216 | } |
216 | } |
217 | |
217 | |
218 | rxvt_img * |
218 | rxvt_img * |
219 | rxvt_img::convert_to (XRenderPictFormat *new_format) |
219 | rxvt_img::convert_to (XRenderPictFormat *new_format) |
220 | { |
220 | { |
221 | Display *dpy = s->display->dpy; |
|
|
222 | rxvt_img *img = new rxvt_img (s,new_format,w, h); |
221 | rxvt_img *img = new rxvt_img (s,new_format,w, h); |
|
|
222 | |
|
|
223 | Display *dpy = s->display->dpy; |
223 | Picture src = XRenderCreatePicture (dpy, pm, format, 0, 0); |
224 | Picture src = XRenderCreatePicture (dpy, pm, format, 0, 0); |
224 | Picture dst = XRenderCreatePicture (dpy, img->pm, new_format, 0, 0); |
225 | Picture dst = XRenderCreatePicture (dpy, img->pm, new_format, 0, 0); |
225 | |
226 | |
226 | XRenderComposite (dpy, PictOpSrc, src, None, dst, 0, 0, 0, 0, 0, 0, w, h); |
227 | XRenderComposite (dpy, PictOpSrc, src, None, dst, 0, 0, 0, 0, 0, 0, w, h); |
227 | |
228 | |