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

Comparing rxvt-unicode/src/rxvtperl.xs (file contents):
Revision 1.244 by root, Tue Jun 25 03:35:01 2019 UTC vs.
Revision 1.245 by root, Tue Sep 17 20:38:14 2019 UTC

2312 RETVAL 2312 RETVAL
2313 2313
2314#endif 2314#endif
2315 2315
2316void 2316void
2317rxvt_term::set_background (rxvt_img *img, bool border = false) 2317rxvt_term::clr_background ()
2318 CODE: 2318 CODE:
2319 delete THIS->bg_img; 2319 delete THIS->bg_img;
2320 THIS->bg_img = 0; 2320 THIS->bg_img = 0;
2321 THIS->bg_flags = rxvt_term::BG_NEEDS_REFRESH;
2322
2323void
2324rxvt_term::set_background (rxvt_img *img, bool border = false)
2325 CODE:
2326 delete THIS->bg_img;
2321 THIS->bg_flags = 0; 2327 THIS->bg_img = 0;
2328 THIS->bg_flags = rxvt_term::BG_NEEDS_REFRESH;
2322 2329
2323 if (img) // TODO: cannot be false 2330 //if (img) // TODO: cannot be false, maybe allow and get rid of clr_background?
2324 { 2331 {
2325 img = img->clone (); // own the img 2332 img = img->clone (); // own the img
2326 2333
2327 if (img->repeat != RepeatNormal) // X11 only supports RepeatNormal as bg pixmap 2334 if (img->repeat != RepeatNormal) // X11 only supports RepeatNormal as bg pixmap
2328 img->sub_rect (0, 0, 2335 img->sub_rect (0, 0,
2336 2343
2337 img->convert_format (XRenderFindVisualFormat (THIS->dpy, THIS->visual), THIS->pix_colors [Color_bg]) 2344 img->convert_format (XRenderFindVisualFormat (THIS->dpy, THIS->visual), THIS->pix_colors [Color_bg])
2338 ->replace (img); 2345 ->replace (img);
2339 2346
2340 THIS->bg_img = img; 2347 THIS->bg_img = img;
2341 THIS->bg_flags |= rxvt_term::BG_NEEDS_REFRESH;
2342 2348
2343 if (!border) 2349 if (!border)
2344 THIS->bg_flags |= rxvt_term::BG_IS_TRANSPARENT; 2350 THIS->bg_flags |= rxvt_term::BG_IS_TRANSPARENT;
2345 } 2351 }
2346 2352

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines