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

1.1       root        1: #include "copyright.h"
                      2: 
                      3: /* $Header: XFillRects.c,v 11.8 87/09/11 08:03:13 toddb Exp $ */
                      4: /* Copyright    Massachusetts Institute of Technology    1986  */
                      5: 
                      6: #include "Xlibint.h"
                      7: 
                      8: XFillRectangles(dpy, d, gc, rectangles, n_rects)
                      9: register Display *dpy;
                     10: Drawable d;
                     11: GC gc;
                     12: XRectangle *rectangles;
                     13: int n_rects;
                     14: {
                     15:     register xPolyFillRectangleReq *req;
                     16:     register long nbytes;
                     17: 
                     18:     LockDisplay(dpy);
                     19:     FlushGC(dpy, gc);
                     20:     GetReq(PolyFillRectangle, req);
                     21:     req->drawable = d;
                     22:     req->gc = gc->gid;
                     23: 
                     24:     /* sizeof(xRectangle) will be a multiple of 4 */
                     25:     req->length += n_rects * (sizeof(xRectangle) / 4);
                     26: 
                     27:     nbytes = n_rects * sizeof(xRectangle);
                     28: 
                     29:     PackData (dpy, (char *) rectangles, nbytes);
                     30:     UnlockDisplay(dpy);
                     31:     SyncHandle();
                     32: }
                     33:     

unix.superglobalmegacorp.com

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