… | |
… | |
315 | rxvt_img *img = new rxvt_img (s, format, w, h); |
315 | rxvt_img *img = new rxvt_img (s, format, w, h); |
316 | |
316 | |
317 | GC gc = XCreateGC (s->display->dpy, pm, 0, 0); |
317 | GC gc = XCreateGC (s->display->dpy, pm, 0, 0); |
318 | XCopyArea (s->display->dpy, pm, img->pm, gc, 0, 0, w, h, 0, 0); |
318 | XCopyArea (s->display->dpy, pm, img->pm, gc, 0, 0, w, h, 0, 0); |
319 | XFreeGC (s->display->dpy, gc); |
319 | XFreeGC (s->display->dpy, gc); |
|
|
320 | |
|
|
321 | return img; |
320 | } |
322 | } |
321 | |
323 | |
322 | rxvt_img * |
324 | rxvt_img * |
323 | rxvt_img::sub_rect (int x, int y, int width, int height, int repeat) |
325 | rxvt_img::sub_rect (int x, int y, int width, int height, int repeat) |
324 | { |
326 | { |