… | |
… | |
227 | { |
227 | { |
228 | } |
228 | } |
229 | |
229 | |
230 | rxvt_drawable &rxvt_screen::scratch_drawable (int w, int h) |
230 | rxvt_drawable &rxvt_screen::scratch_drawable (int w, int h) |
231 | { |
231 | { |
232 | // it's actually faster to re-allocate every time. don't ask me |
|
|
233 | // why, but its likely no big deal there are no roundtrips |
|
|
234 | // (I think/hope). |
|
|
235 | if (!scratch_area || w > scratch_w || h > scratch_h || 1/*D*/) |
232 | if (!scratch_area || w > scratch_w || h > scratch_h) |
236 | { |
233 | { |
237 | if (scratch_area) |
234 | if (scratch_area) |
238 | { |
235 | { |
239 | XFreePixmap (dpy, scratch_area->drawable); |
236 | XFreePixmap (dpy, scratch_area->drawable); |
240 | delete scratch_area; |
237 | delete scratch_area; |