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.176 by root, Wed Jun 6 22:01:44 2012 UTC vs.
Revision 1.177 by root, Thu Jun 7 07:53:12 2012 UTC

2092 THIS->bg_pixmap = None; 2092 THIS->bg_pixmap = None;
2093 THIS->bg_flags &= ~rxvt_term::BG_NEEDS_REFRESH; 2093 THIS->bg_flags &= ~rxvt_term::BG_NEEDS_REFRESH;
2094 2094
2095 if (img) // TODO: cannot be false 2095 if (img) // TODO: cannot be false
2096 { 2096 {
2097 XRenderPictFormat *f = XRenderFindVisualFormat (THIS->dpy, THIS->visual); 2097 img = img->convert_to (XRenderFindVisualFormat (THIS->dpy, THIS->visual), THIS->pix_colors [Color_bg]);
2098 rxvt_img *img2 = 0;
2099 rxvt_img *img3 = 0;
2100
2101 if (f != img->format)
2102 img = img2 = img->convert_to (f, THIS->pix_colors [Color_bg]);
2103
2104 img->unshare ();
2105 THIS->bg_pixmap = img->steal (); 2098 THIS->bg_pixmap = img->steal ();
2106 THIS->bg_flags |= rxvt_term::BG_NEEDS_REFRESH; 2099 THIS->bg_flags |= rxvt_term::BG_NEEDS_REFRESH;
2107 THIS->bg_valid_since = ev::now (); // TODO: extra bloat 2100 THIS->bg_valid_since = ev::now (); // TODO: extra bloat
2108
2109 delete img2; 2101 delete img;
2110 } 2102 }
2111 2103
2112#endif 2104#endif
2113 2105
2114#endif 2106#endif
2163 2155
2164int 2156int
2165rxvt_img::h () 2157rxvt_img::h ()
2166 CODE: 2158 CODE:
2167 RETVAL = THIS->h; 2159 RETVAL = THIS->h;
2168 OUTPUT:
2169 RETVAL
2170
2171bool
2172rxvt_img::shared ()
2173 CODE:
2174 RETVAL = THIS->shared;
2175 OUTPUT: 2160 OUTPUT:
2176 RETVAL 2161 RETVAL
2177 2162
2178Pixmap 2163Pixmap
2179rxvt_img::pm () 2164rxvt_img::pm ()

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines