… | |
… | |
515 | |
515 | |
516 | return transform (new_width, new_height, matrix); |
516 | return transform (new_width, new_height, matrix); |
517 | } |
517 | } |
518 | |
518 | |
519 | rxvt_img * |
519 | rxvt_img * |
520 | rxvt_img::convert_to (XRenderPictFormat *new_format, const rxvt_color &bg) |
520 | rxvt_img::convert_format (XRenderPictFormat *new_format, const rxvt_color &bg) |
521 | { |
521 | { |
522 | if (new_format == format) |
522 | if (new_format == format) |
523 | return clone (); |
523 | return clone (); |
524 | |
524 | |
525 | rxvt_img *img = new rxvt_img (s, new_format, 0, 0, w, h, repeat); |
525 | rxvt_img *img = new rxvt_img (s, new_format, x, y, w, h, repeat); |
526 | img->alloc (); |
526 | img->alloc (); |
527 | |
527 | |
528 | Display *dpy = s->display->dpy; |
528 | Display *dpy = s->display->dpy; |
529 | Picture src = src_picture (); |
529 | Picture src = src_picture (); |
530 | Picture dst = XRenderCreatePicture (dpy, img->pm, new_format, 0, 0); |
530 | Picture dst = XRenderCreatePicture (dpy, img->pm, new_format, 0, 0); |