Annotation of researchv9/X11/src/X.V11R1/lib/X/XCrCmap.c, revision 1.1.1.1

1.1       root        1: #include "copyright.h"
                      2: 
                      3: /* $Header: XCrCmap.c,v 11.7 87/09/11 08:02:26 toddb Exp $ */
                      4: /* Copyright    Massachusetts Institute of Technology    1986  */
                      5: 
                      6: #include "Xlibint.h"
                      7: 
                      8: Colormap XCreateColormap(dpy, w, visual, alloc)
                      9: register Display *dpy;
                     10: Window w;
                     11: Visual *visual;
                     12: int alloc;
                     13: {
                     14:     register xCreateColormapReq *req;
                     15:     Colormap mid;
                     16: 
                     17:     LockDisplay(dpy);
                     18:     GetReq(CreateColormap, req);
                     19:     req->window = w;
                     20:     mid = req->mid = XAllocID(dpy);
                     21:     req->alloc = alloc;
                     22:     if (visual == CopyFromParent) req->visual = CopyFromParent;
                     23:     else req->visual = visual->visualid;
                     24:     UnlockDisplay(dpy);
                     25:     SyncHandle();
                     26:     return(mid);
                     27: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.