… | |
… | |
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 | |
2164 | int |
2156 | int |
2165 | rxvt_img::h () |
2157 | rxvt_img::h () |
2166 | CODE: |
2158 | CODE: |
2167 | RETVAL = THIS->h; |
2159 | RETVAL = THIS->h; |
2168 | OUTPUT: |
|
|
2169 | RETVAL |
|
|
2170 | |
|
|
2171 | bool |
|
|
2172 | rxvt_img::shared () |
|
|
2173 | CODE: |
|
|
2174 | RETVAL = THIS->shared; |
|
|
2175 | OUTPUT: |
2160 | OUTPUT: |
2176 | RETVAL |
2161 | RETVAL |
2177 | |
2162 | |
2178 | Pixmap |
2163 | Pixmap |
2179 | rxvt_img::pm () |
2164 | rxvt_img::pm () |