Annotation of 43BSD/contrib/X/Xlib/XMakeTile.c, revision 1.1.1.1

1.1       root        1: #include <X/mit-copyright.h>
                      2: 
                      3: /* $Header: XMakeTile.c,v 10.4 86/02/01 15:36:44 tony Rel $ */
                      4: /* Copyright    Massachusetts Institute of Technology    1985  */
                      5: 
                      6: #include "XlibInternal.h"
                      7: Pixmap XMakeTile (pixel)
                      8:        int pixel;
                      9: {
                     10:        register Display *dpy;
                     11:        register XReq *req;
                     12:        XRep rep;
                     13:        
                     14:        switch (pixel) {
                     15:            case WhitePixel: return (_XlibCurrentDisplay->white);
                     16:            case BlackPixel: return (_XlibCurrentDisplay->black);
                     17:            }
                     18: 
                     19:        GetReq(X_MakePixmap, 0);
                     20:        req->param.l[0] = 0;
                     21:        req->param.s[2] = pixel;
                     22:        if (!_XReply (dpy, &rep))
                     23:            return (NULL);
                     24:        return (rep.param.l[0]);
                     25: }
                     26: 

unix.superglobalmegacorp.com

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