Annotation of researchv9/X11/src/X.V11R1/lib/X/XQuCurShp.c, revision 1.1

1.1     ! root        1: #include "copyright.h"
        !             2: 
        !             3: /* $Header: XQuCurShp.c,v 11.9 87/09/11 08:05:54 toddb Exp $ */
        !             4: /* Copyright    Massachusetts Institute of Technology    1986  */
        !             5: 
        !             6: #define NEED_REPLIES
        !             7: #include "Xlibint.h"
        !             8: 
        !             9: Status XQueryBestCursor(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 = CursorShape;
        !            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:     *ret_width = rep.width;
        !            30:     *ret_height = rep.height;
        !            31:     UnlockDisplay(dpy);
        !            32:     SyncHandle();
        !            33:     return 1;
        !            34: }
        !            35: 

unix.superglobalmegacorp.com

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