|
|
1.1 ! root 1: #include "copyright.h" ! 2: ! 3: /* $Header: XCrCursor.c,v 11.6 87/09/11 08:02:29 toddb Exp $ */ ! 4: /* Copyright Massachusetts Institute of Technology 1986 */ ! 5: ! 6: #include "Xlibint.h" ! 7: ! 8: Cursor XCreatePixmapCursor(dpy, source, mask, foreground, background, x, y) ! 9: register Display *dpy; ! 10: Pixmap source, mask; ! 11: XColor *foreground, *background; ! 12: unsigned int x, y; ! 13: ! 14: { ! 15: register xCreateCursorReq *req; ! 16: Cursor cid; ! 17: ! 18: LockDisplay(dpy); ! 19: GetReq(CreateCursor, req); ! 20: req->cid = cid = XAllocID(dpy); ! 21: req->source = source; ! 22: req->mask = mask; ! 23: req->foreRed = foreground->red; ! 24: req->foreGreen = foreground->green; ! 25: req->foreBlue = foreground->blue; ! 26: req->backRed = background->red; ! 27: req->backGreen = background->green; ! 28: req->backBlue = background->blue; ! 29: req->x = x; ! 30: req->y = y; ! 31: UnlockDisplay(dpy); ! 32: SyncHandle(); ! 33: return (cid); ! 34: } ! 35:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.