3 * Copyright © 2002 Keith Packard
5 * Permission to use, copy, modify, distribute, and sell this software and its
6 * documentation for any purpose is hereby granted without fee, provided that
7 * the above copyright notice appear in all copies and that both that
8 * copyright notice and this permission notice appear in supporting
9 * documentation, and that the name of Keith Packard not be used in
10 * advertising or publicity pertaining to distribution of the software without
11 * specific, written prior permission. Keith Packard makes no
12 * representations about the suitability of this software for any purpose. It
13 * is provided "as is" without express or implied warranty.
15 * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
16 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
17 * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
18 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
19 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
20 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
21 * PERFORMANCE OF THIS SOFTWARE.
27 #include "Xrenderint.h"
30 XRenderCreateCursor (Display *dpy,
35 XRenderExtDisplayInfo *info = XRenderFindDisplay (dpy);
37 xRenderCreateCursorReq *req;
39 RenderCheckExtension (dpy, info, 0);
41 GetReq(RenderCreateCursor, req);
42 req->reqType = info->codes->major_opcode;
43 req->renderReqType = X_RenderCreateCursor;
44 req->cid = cid = XAllocID (dpy);
55 XRenderCreateAnimCursor (Display *dpy,
59 XRenderExtDisplayInfo *info = XRenderFindDisplay (dpy);
61 xRenderCreateAnimCursorReq *req;
64 RenderCheckExtension (dpy, info, 0);
66 GetReq(RenderCreateAnimCursor, req);
67 req->reqType = info->codes->major_opcode;
68 req->renderReqType = X_RenderCreateAnimCursor;
69 req->cid = cid = XAllocID (dpy);
71 len = (long) ncursor * SIZEOF (xAnimCursorElt) >> 2;
72 SetReqLen (req, len, len);
74 Data32 (dpy, (long *) cursors, len);