… | |
… | |
2203 | OUTPUT: |
2203 | OUTPUT: |
2204 | RETVAL |
2204 | RETVAL |
2205 | |
2205 | |
2206 | #endif |
2206 | #endif |
2207 | |
2207 | |
|
|
2208 | void |
|
|
2209 | rxvt_term::set_background (rxvt_img *img, bool border = false) |
|
|
2210 | CODE: |
2208 | #if HAVE_BG_PIXMAP |
2211 | #if HAVE_BG_PIXMAP |
2209 | |
|
|
2210 | void |
|
|
2211 | rxvt_term::set_background (rxvt_img *img, bool border = false) |
|
|
2212 | CODE: |
|
|
2213 | THIS->bg_destroy (); |
2212 | THIS->bg_destroy (); |
|
|
2213 | #endif |
2214 | THIS->bg_flags &= ~(rxvt_term::BG_NEEDS_REFRESH | rxvt_term::BG_INHIBIT_RENDER | rxvt_term::BG_IS_TRANSPARENT); |
2214 | THIS->bg_flags &= ~(rxvt_term::BG_NEEDS_REFRESH | rxvt_term::BG_INHIBIT_RENDER | rxvt_term::BG_IS_TRANSPARENT); |
2215 | |
2215 | |
2216 | if (img) // TODO: cannot be false |
2216 | if (img) // TODO: cannot be false |
2217 | { |
2217 | { |
2218 | img = img->clone (); // own the img |
2218 | img = img->clone (); // own the img |
… | |
… | |
2234 | THIS->bg_flags |= rxvt_term::BG_NEEDS_REFRESH | rxvt_term::BG_INHIBIT_RENDER; |
2234 | THIS->bg_flags |= rxvt_term::BG_NEEDS_REFRESH | rxvt_term::BG_INHIBIT_RENDER; |
2235 | |
2235 | |
2236 | if (!border) |
2236 | if (!border) |
2237 | THIS->bg_flags |= rxvt_term::BG_IS_TRANSPARENT; |
2237 | THIS->bg_flags |= rxvt_term::BG_IS_TRANSPARENT; |
2238 | } |
2238 | } |
2239 | |
|
|
2240 | #endif |
|
|
2241 | |
2239 | |
2242 | #endif |
2240 | #endif |
2243 | |
2241 | |
2244 | ############################################################################# |
2242 | ############################################################################# |
2245 | # urxvt::overlay |
2243 | # urxvt::overlay |