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.185 by root, Thu Jun 7 17:30:33 2012 UTC vs.
Revision 1.186 by root, Thu Jun 7 18:07:42 2012 UTC

2098 2098
2099 if (img) // TODO: cannot be false 2099 if (img) // TODO: cannot be false
2100 { 2100 {
2101 img = img->clone (); // own the img 2101 img = img->clone (); // own the img
2102 2102
2103 {
2104 rxvt_img *img2 = img->convert_format (XRenderFindVisualFormat (THIS->dpy, THIS->visual), THIS->pix_colors [Color_bg]);
2105 delete img;
2106 img = img2;
2107 }
2108
2109 if (img->repeat != RepeatNormal) // X11 only supports RepeatNormal as bg pixmap 2103 if (img->repeat != RepeatNormal) // X11 only supports RepeatNormal as bg pixmap
2110 { 2104 {
2111 rxvt_img *img2 = img->sub_rect (0, 0, 2105 rxvt_img *img2 = img->sub_rect (0, 0,
2112 border ? THIS->vt_width : THIS->szHint.width, 2106 border ? THIS->vt_width : THIS->szHint.width,
2113 border ? THIS->vt_height : THIS->szHint.height); 2107 border ? THIS->vt_height : THIS->szHint.height);
2116 } 2110 }
2117 2111
2118 { 2112 {
2119 // just in case, should usually be a nop 2113 // just in case, should usually be a nop
2120 rxvt_img *img2 = img->reify (); 2114 rxvt_img *img2 = img->reify ();
2115 delete img;
2116 img = img2;
2117 }
2118
2119 {
2120 rxvt_img *img2 = img->convert_format (XRenderFindVisualFormat (THIS->dpy, THIS->visual), THIS->pix_colors [Color_bg]);
2121 delete img; 2121 delete img;
2122 img = img2; 2122 img = img2;
2123 } 2123 }
2124 2124
2125 THIS->bg_pixmap = img->steal (); 2125 THIS->bg_pixmap = img->steal ();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines