|
|
1.1 root 1: #include "copyright.h"
2:
3: /* $Header: XCopyArea.c,v 11.6 87/09/11 08:02:14 toddb Exp $ */
4: /* Copyright Massachusetts Institute of Technology 1986 */
5:
6: #include "Xlibint.h"
7:
8: XCopyArea(dpy, src_drawable, dst_drawable, gc,
9: src_x, src_y, width, height,
10: dst_x, dst_y)
11: register Display *dpy;
12: Drawable src_drawable, dst_drawable;
13: GC gc;
14: int src_x, src_y;
15: unsigned int width, height;
16: int dst_x, dst_y;
17:
18: {
19: register xCopyAreaReq *req;
20:
21: LockDisplay(dpy);
22: FlushGC(dpy, gc);
23: GetReq(CopyArea, req);
24: req->srcDrawable = src_drawable;
25: req->dstDrawable = dst_drawable;
26: req->gc = gc->gid;
27: req->srcX = src_x;
28: req->srcY = src_y;
29: req->dstX = dst_x;
30: req->dstY = dst_y;
31: req->width = width;
32: req->height = height;
33: UnlockDisplay(dpy);
34: SyncHandle();
35: }
36:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.