summaryrefslogtreecommitdiff
path: root/src/Trap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Trap.c')
-rw-r--r--src/Trap.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/Trap.c b/src/Trap.c
index 9d8e981..31ebb95 100644
--- a/src/Trap.c
+++ b/src/Trap.c
@@ -49,18 +49,18 @@ XRenderCompositeTrapezoids (Display *dpy,
unsigned long len;
GetReq(RenderTrapezoids, req);
- req->reqType = info->codes->major_opcode;
+ req->reqType = (CARD8) info->codes->major_opcode;
req->renderReqType = X_RenderTrapezoids;
req->op = (CARD8) op;
- req->src = src;
- req->dst = dst;
- req->maskFormat = maskFormat ? maskFormat->id : 0;
- req->xSrc = xSrc;
- req->ySrc = ySrc;
+ req->src = (CARD32) src;
+ req->dst = (CARD32) dst;
+ req->maskFormat = (CARD32) (maskFormat ? maskFormat->id : 0);
+ req->xSrc = (INT16) xSrc;
+ req->ySrc = (INT16) ySrc;
n = ntrap;
len = ((unsigned long) n) * (SIZEOF (xTrapezoid) >> 2);
if (len > (max_req - req->length)) {
- n = (max_req - req->length) / (SIZEOF (xTrapezoid) >> 2);
+ n = (int) ((max_req - req->length) / (SIZEOF (xTrapezoid) >> 2));
len = ((unsigned long) n) * (SIZEOF (xTrapezoid) >> 2);
}
SetReqLen (req, len, len);