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

1.1       root        1: #include "copyright.h"
                      2: 
                      3: /* $Header: XQuTileShp.c,v 11.9 87/09/11 08:06:17 toddb Exp $ */
                      4: /* Copyright    Massachusetts Institute of Technology    1986  */
                      5: 
                      6: #define NEED_REPLIES
                      7: #include "Xlibint.h"
                      8: 
                      9: Status XQueryBestTile(dpy, drawable, width, height, ret_width, ret_height)
                     10:      register Display *dpy;
                     11:      Drawable drawable;
                     12:      unsigned int width, height;
                     13:      unsigned int *ret_width, *ret_height;
                     14: {       
                     15:     xQueryBestSizeReply rep;
                     16:     register xQueryBestSizeReq *req;
                     17: 
                     18:     LockDisplay(dpy);
                     19:     GetReq(QueryBestSize, req);
                     20:     req->class = TileShape;
                     21:     req->drawable = drawable;
                     22:     req->width = width;
                     23:     req->height = height;
                     24:     if (_XReply (dpy, (xReply *)&rep, 0, xTrue) == 0) {
                     25:        UnlockDisplay(dpy);
                     26:        SyncHandle();
                     27:        return(0);
                     28:        }
                     29: 
                     30:     *ret_width = rep.width;
                     31:     *ret_height = rep.height;
                     32:     UnlockDisplay(dpy);
                     33:     SyncHandle();
                     34:     return 1;
                     35: }
                     36: 

unix.superglobalmegacorp.com

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