1: #include <X/mit-copyright.h> 2: 3: /* $Header: XPixmapSave.c,v 10.4 86/02/01 15:38:30 tony Rel $ */ 4: /* Copyright Massachusetts Institute of Technology 1985 */ 5: 6: #include "XlibInternal.h" 7: Pixmap XPixmapSave (w, x, y, width, height) 8: Window w; 9: int x, y, width, height; 10: { 11: register Display *dpy; 12: register XReq *req; 13: XRep rep; 14: 15: GetReq(X_PixmapSave, w); 16: req->param.s[0] = height; 17: req->param.s[1] = width; 18: req->param.s[2] = x; 19: req->param.s[3] = y; 20: if (!_XReply(dpy, &rep)) 21: return(NULL); 22: return (rep.param.l[0]); 23: }