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.190 by sf-exg, Sun Jun 10 13:07:56 2012 UTC vs.
Revision 1.191 by root, Sun Jun 10 15:01:14 2012 UTC

2032} 2032}
2033 2033
2034############################################################################# 2034#############################################################################
2035# fancy bg bloatstuff (TODO: should be moved up somewhere) 2035# fancy bg bloatstuff (TODO: should be moved up somewhere)
2036 2036
2037bool
2038rxvt_term::has_render ()
2039 CODE:
2040 RETVAL = THIS->display->flags & DISPLAY_HAS_RENDER;
2041 OUTPUT:
2042 RETVAL
2043
2037# TODO: ugly 2044# TODO: ugly
2038void 2045void
2039rxvt_term::background_geometry (bool border = false) 2046rxvt_term::background_geometry (bool border = false)
2040 PPCODE: 2047 PPCODE:
2041 EXTEND (SP, 4); 2048 EXTEND (SP, 4);
2090 2097
2091void 2098void
2092rxvt_term::set_background (rxvt_img *img, bool border = false) 2099rxvt_term::set_background (rxvt_img *img, bool border = false)
2093 CODE: 2100 CODE:
2094 THIS->bg_destroy (); 2101 THIS->bg_destroy ();
2095 THIS->bg_img = 0;
2096 THIS->bg_flags &= ~(rxvt_term::BG_NEEDS_REFRESH | rxvt_term::BG_INHIBIT_RENDER | rxvt_term::BG_IS_TRANSPARENT); 2102 THIS->bg_flags &= ~(rxvt_term::BG_NEEDS_REFRESH | rxvt_term::BG_INHIBIT_RENDER | rxvt_term::BG_IS_TRANSPARENT);
2097 2103
2098 if (img) // TODO: cannot be false 2104 if (img) // TODO: cannot be false
2099 { 2105 {
2100 img = img->clone (); // own the img 2106 img = img->clone (); // own the img
2115 THIS->bg_img = img; 2121 THIS->bg_img = img;
2116 THIS->bg_flags |= rxvt_term::BG_NEEDS_REFRESH | rxvt_term::BG_INHIBIT_RENDER; 2122 THIS->bg_flags |= rxvt_term::BG_NEEDS_REFRESH | rxvt_term::BG_INHIBIT_RENDER;
2117 2123
2118 if (!border) 2124 if (!border)
2119 THIS->bg_flags |= rxvt_term::BG_IS_TRANSPARENT; 2125 THIS->bg_flags |= rxvt_term::BG_IS_TRANSPARENT;
2120
2121 delete img;
2122 } 2126 }
2123 2127
2124#endif 2128#endif
2125 2129
2126#endif 2130#endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines