|
|
1.1 ! root 1: #include "copyright.h" ! 2: ! 3: /* $Header: XCopyCmap.c,v 11.5 87/09/11 08:02:17 toddb Exp $ */ ! 4: /* Copyright Massachusetts Institute of Technology 1986 */ ! 5: ! 6: #include "Xlibint.h" ! 7: ! 8: Colormap XCopyColormapAndFree(dpy, src_cmap) ! 9: register Display *dpy; ! 10: Colormap src_cmap; ! 11: { ! 12: Colormap mid; ! 13: register xCopyColormapAndFreeReq *req; ! 14: ! 15: LockDisplay(dpy); ! 16: GetReq(CopyColormapAndFree, req); ! 17: ! 18: mid = req->mid = XAllocID(dpy); ! 19: req->srcCmap = src_cmap; ! 20: UnlockDisplay(dpy); ! 21: SyncHandle(); ! 22: return(mid); ! 23: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.