… | |
… | |
426 | if (w != width || h != height) |
426 | if (w != width || h != height) |
427 | { |
427 | { |
428 | img->w = width; |
428 | img->w = width; |
429 | img->h = height; |
429 | img->h = height; |
430 | |
430 | |
431 | img->reify (); |
431 | rxvt_img *img2 = img->reify (); |
|
|
432 | delete img; |
|
|
433 | img = img2; |
432 | } |
434 | } |
433 | |
435 | |
434 | return img; |
436 | return img; |
435 | } |
437 | } |
436 | |
438 | |
… | |
… | |
527 | rxvt_img * |
529 | rxvt_img * |
528 | rxvt_img::blend (rxvt_img *img, double factor) |
530 | rxvt_img::blend (rxvt_img *img, double factor) |
529 | { |
531 | { |
530 | rxvt_img *img2 = clone (); |
532 | rxvt_img *img2 = clone (); |
531 | Display *dpy = s->display->dpy; |
533 | Display *dpy = s->display->dpy; |
532 | Picture src = src_picture (); |
534 | Picture src = img->src_picture (); |
533 | Picture dst = XRenderCreatePicture (dpy, img2->pm, img2->format, 0, 0); |
535 | Picture dst = XRenderCreatePicture (dpy, img2->pm, img2->format, 0, 0); |
534 | Picture mask = create_xrender_mask (dpy, img->pm, False); |
536 | Picture mask = create_xrender_mask (dpy, img->pm, False); |
535 | |
537 | |
536 | XRenderColor mask_c; |
538 | XRenderColor mask_c; |
537 | |
539 | |