ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rxvtimg.C
(Generate patch)

Comparing rxvt-unicode/src/rxvtimg.C (file contents):
Revision 1.6 by sf-exg, Sun Jun 3 18:49:55 2012 UTC vs.
Revision 1.10 by sf-exg, Mon Jun 4 06:59:50 2012 UTC

213{ 213{
214 // use transform 214 // use transform
215 //TODO 215 //TODO
216} 216}
217 217
218rxvt_img *
219rxvt_img::convert_to (XRenderPictFormat *new_format)
220{
221 rxvt_img *img = new rxvt_img (s, new_format, w, h);
222
223 Display *dpy = s->display->dpy;
224 Picture src = XRenderCreatePicture (dpy, pm, format, 0, 0);
225 Picture dst = XRenderCreatePicture (dpy, img->pm, new_format, 0, 0);
226
227 XRenderComposite (dpy, PictOpSrc, src, None, dst, 0, 0, 0, 0, 0, 0, w, h);
228
229 XRenderFreePicture (dpy, src);
230 XRenderFreePicture (dpy, dst);
231
232 return img;
233}
218 234
219#endif 235#endif
220 236

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines