summaryrefslogtreecommitdiff
path: root/src/Cursor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Cursor.c')
-rw-r--r--src/Cursor.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/Cursor.c b/src/Cursor.c
index 1d44c80..2efa8ca 100644
--- a/src/Cursor.c
+++ b/src/Cursor.c
@@ -39,12 +39,12 @@ XRenderCreateCursor (Display *dpy,
RenderCheckExtension (dpy, info, 0);
LockDisplay(dpy);
GetReq(RenderCreateCursor, req);
- req->reqType = info->codes->major_opcode;
+ req->reqType = (CARD8) info->codes->major_opcode;
req->renderReqType = X_RenderCreateCursor;
- req->cid = cid = XAllocID (dpy);
- req->src = source;
- req->x = x;
- req->y = y;
+ req->cid = (CARD32) (cid = XAllocID (dpy));
+ req->src = (CARD32) source;
+ req->x = (CARD16) x;
+ req->y = (CARD16) y;
UnlockDisplay(dpy);
SyncHandle();
@@ -64,9 +64,9 @@ XRenderCreateAnimCursor (Display *dpy,
RenderCheckExtension (dpy, info, 0);
LockDisplay(dpy);
GetReq(RenderCreateAnimCursor, req);
- req->reqType = info->codes->major_opcode;
+ req->reqType = (CARD8) info->codes->major_opcode;
req->renderReqType = X_RenderCreateAnimCursor;
- req->cid = cid = XAllocID (dpy);
+ req->cid = (CARD32) (cid = XAllocID (dpy));
len = (long) ncursor * SIZEOF (xAnimCursorElt) >> 2;
SetReqLen (req, len, len);