1: #include <X/mit-copyright.h> 2: 3: /* $Header: XStoreCursor.c,v 10.4 86/02/01 15:40:17 tony Rel $ */ 4: /* Copyright Massachusetts Institute of Technology 1985 */ 5: 6: #include "XlibInternal.h" 7: Cursor XStoreCursor (cbitmap, mbitmap, xOffset, yOffset, 8: foreground, background, func) 9: Bitmap cbitmap, mbitmap; 10: int xOffset, yOffset; 11: int func; 12: int foreground, background; 13: { 14: register Display *dpy; 15: register XReq *req; 16: XRep rep; 17: 18: GetReq(X_StoreCursor, 0); 19: req->func = func; 20: req->param.l[0] = cbitmap; 21: req->param.u[2] = foreground; 22: req->param.u[3] = background; 23: req->param.l[2] = mbitmap; 24: req->param.s[6] = xOffset; 25: req->param.s[7] = yOffset; 26: if (!_XReply (dpy, &rep)) 27: return (NULL); 28: return (rep.param.l[0]); 29: }