… | |
… | |
2206 | #endif |
2206 | #endif |
2207 | |
2207 | |
2208 | void |
2208 | void |
2209 | rxvt_term::set_background (rxvt_img *img, bool border = false) |
2209 | rxvt_term::set_background (rxvt_img *img, bool border = false) |
2210 | CODE: |
2210 | CODE: |
2211 | delete bg_img; |
2211 | delete THIS->bg_img; |
2212 | bg_img = 0; |
2212 | THIS->bg_img = 0; |
2213 | THIS->bg_flags &= ~(rxvt_term::BG_NEEDS_REFRESH | rxvt_term::BG_INHIBIT_RENDER | rxvt_term::BG_IS_TRANSPARENT); |
2213 | THIS->bg_flags &= ~(rxvt_term::BG_NEEDS_REFRESH | rxvt_term::BG_INHIBIT_RENDER | rxvt_term::BG_IS_TRANSPARENT); |
2214 | |
2214 | |
2215 | if (img) // TODO: cannot be false |
2215 | if (img) // TODO: cannot be false |
2216 | { |
2216 | { |
2217 | img = img->clone (); // own the img |
2217 | img = img->clone (); // own the img |