Annotation of 43BSD/contrib/X/Xlib/XStorePixmapZ.c, revision 1.1

1.1     ! root        1: #include <X/mit-copyright.h>
        !             2: 
        !             3: /* $Header: XStorePixmapZ.c,v 10.4 86/02/01 15:40:29 tony Rel $ */
        !             4: /* Copyright    Massachusetts Institute of Technology    1985  */
        !             5: 
        !             6: #include "XlibInternal.h"
        !             7: Pixmap XStorePixmapZ (width, height, data)
        !             8:        int width, height;
        !             9:        caddr_t data;
        !            10: {
        !            11:        register Display *dpy;
        !            12:        register XReq *req;
        !            13:        XRep rep;
        !            14:        int len;
        !            15: 
        !            16:        GetReq(X_StorePixmap, 0);
        !            17:        req->func = ZFormat;
        !            18:        req->param.s[0] = height;
        !            19:        req->param.s[1] = width;
        !            20:        len = (dpy->dplanes > 8)
        !            21:          ? WZPixmapSize (width, height)
        !            22:          : BZPixmapSize (width, height);
        !            23:        Data (dpy, data, len);
        !            24:        if (!_XReply(dpy, &rep))
        !            25:            return(NULL);
        !            26:        return (rep.param.l[0]);
        !            27: }
        !            28: 

unix.superglobalmegacorp.com

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