summaryrefslogtreecommitdiff
path: root/src/Region.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Region.c')
-rw-r--r--src/Region.c77
1 files changed, 41 insertions, 36 deletions
diff --git a/src/Region.c b/src/Region.c
index 59bcc1a..d29297f 100644
--- a/src/Region.c
+++ b/src/Region.c
@@ -39,7 +39,8 @@ XFixesCreateRegion (Display *dpy, XRectangle *rectangles, int nrectangles)
GetReq (XFixesCreateRegion, req);
req->reqType = info->codes->major_opcode;
req->xfixesReqType = X_XFixesCreateRegion;
- region = req->region = XAllocID (dpy);
+ region = XAllocID (dpy);
+ req->region = (CARD32) region;
len = ((long) nrectangles) << 1;
SetReqLen (req, len, len);
len <<= 2;
@@ -61,8 +62,9 @@ XFixesCreateRegionFromBitmap (Display *dpy, Pixmap bitmap)
GetReq (XFixesCreateRegionFromBitmap, req);
req->reqType = info->codes->major_opcode;
req->xfixesReqType = X_XFixesCreateRegionFromBitmap;
- region = req->region = XAllocID (dpy);
- req->bitmap = bitmap;
+ region = XAllocID (dpy);
+ req->region = (CARD32) region;
+ req->bitmap = (CARD32) bitmap;
UnlockDisplay (dpy);
SyncHandle();
return region;
@@ -80,8 +82,9 @@ XFixesCreateRegionFromWindow (Display *dpy, Window window, int kind)
GetReq (XFixesCreateRegionFromWindow, req);
req->reqType = info->codes->major_opcode;
req->xfixesReqType = X_XFixesCreateRegionFromWindow;
- region = req->region = XAllocID (dpy);
- req->window = window;
+ region = XAllocID (dpy);
+ req->region = (CARD32) region;
+ req->window = (CARD32) window;
req->kind = kind;
UnlockDisplay (dpy);
SyncHandle();
@@ -100,8 +103,9 @@ XFixesCreateRegionFromGC (Display *dpy, GC gc)
GetReq (XFixesCreateRegionFromGC, req);
req->reqType = info->codes->major_opcode;
req->xfixesReqType = X_XFixesCreateRegionFromGC;
- region = req->region = XAllocID (dpy);
- req->gc = gc->gid;
+ region = XAllocID (dpy);
+ req->region = (CARD32) region;
+ req->gc = (CARD32) gc->gid;
UnlockDisplay (dpy);
SyncHandle();
return region;
@@ -119,8 +123,9 @@ XFixesCreateRegionFromPicture (Display *dpy, XID picture)
GetReq (XFixesCreateRegionFromPicture, req);
req->reqType = info->codes->major_opcode;
req->xfixesReqType = X_XFixesCreateRegionFromPicture;
- region = req->region = XAllocID (dpy);
- req->picture = picture;
+ region = XAllocID (dpy);
+ req->region = (CARD32) region;
+ req->picture = (CARD32) picture;
UnlockDisplay (dpy);
SyncHandle();
return region;
@@ -137,7 +142,7 @@ XFixesDestroyRegion (Display *dpy, XserverRegion region)
GetReq (XFixesDestroyRegion, req);
req->reqType = info->codes->major_opcode;
req->xfixesReqType = X_XFixesDestroyRegion;
- req->region = region;
+ req->region = (CARD32) region;
UnlockDisplay (dpy);
SyncHandle();
}
@@ -155,7 +160,7 @@ XFixesSetRegion (Display *dpy, XserverRegion region,
GetReq (XFixesSetRegion, req);
req->reqType = info->codes->major_opcode;
req->xfixesReqType = X_XFixesSetRegion;
- req->region = region;
+ req->region = (CARD32) region;
len = ((long) nrectangles) << 1;
SetReqLen (req, len, len);
len <<= 2;
@@ -175,8 +180,8 @@ XFixesCopyRegion (Display *dpy, XserverRegion dst, XserverRegion src)
GetReq (XFixesCopyRegion, req);
req->reqType = info->codes->major_opcode;
req->xfixesReqType = X_XFixesCopyRegion;
- req->source = src;
- req->destination = dst;
+ req->source = (CARD32) src;
+ req->destination = (CARD32) dst;
UnlockDisplay (dpy);
SyncHandle();
}
@@ -193,9 +198,9 @@ XFixesUnionRegion (Display *dpy, XserverRegion dst,
GetReq (XFixesUnionRegion, req);
req->reqType = info->codes->major_opcode;
req->xfixesReqType = X_XFixesUnionRegion;
- req->source1 = src1;
- req->source2 = src2;
- req->destination = dst;
+ req->source1 = (CARD32) src1;
+ req->source2 = (CARD32) src2;
+ req->destination = (CARD32) dst;
UnlockDisplay (dpy);
SyncHandle();
}
@@ -212,9 +217,9 @@ XFixesIntersectRegion (Display *dpy, XserverRegion dst,
GetReq (XFixesIntersectRegion, req);
req->reqType = info->codes->major_opcode;
req->xfixesReqType = X_XFixesIntersectRegion;
- req->source1 = src1;
- req->source2 = src2;
- req->destination = dst;
+ req->source1 = (CARD32) src1;
+ req->source2 = (CARD32) src2;
+ req->destination = (CARD32) dst;
UnlockDisplay (dpy);
SyncHandle();
}
@@ -231,9 +236,9 @@ XFixesSubtractRegion (Display *dpy, XserverRegion dst,
GetReq (XFixesSubtractRegion, req);
req->reqType = info->codes->major_opcode;
req->xfixesReqType = X_XFixesSubtractRegion;
- req->source1 = src1;
- req->source2 = src2;
- req->destination = dst;
+ req->source1 = (CARD32) src1;
+ req->source2 = (CARD32) src2;
+ req->destination = (CARD32) dst;
UnlockDisplay (dpy);
SyncHandle();
}
@@ -254,8 +259,8 @@ XFixesInvertRegion (Display *dpy, XserverRegion dst,
req->y = rect->y;
req->width = rect->width;
req->height = rect->height;
- req->source = src;
- req->destination = dst;
+ req->source = (CARD32) src;
+ req->destination = (CARD32) dst;
UnlockDisplay (dpy);
SyncHandle();
}
@@ -271,7 +276,7 @@ XFixesTranslateRegion (Display *dpy, XserverRegion region, int dx, int dy)
GetReq (XFixesTranslateRegion, req);
req->reqType = info->codes->major_opcode;
req->xfixesReqType = X_XFixesTranslateRegion;
- req->region = region;
+ req->region = (CARD32) region;
req->dx = dx;
req->dy = dy;
UnlockDisplay (dpy);
@@ -289,8 +294,8 @@ XFixesRegionExtents (Display *dpy, XserverRegion dst, XserverRegion src)
GetReq (XFixesRegionExtents, req);
req->reqType = info->codes->major_opcode;
req->xfixesReqType = X_XFixesRegionExtents;
- req->source = src;
- req->destination = dst;
+ req->source = (CARD32) src;
+ req->destination = (CARD32) dst;
UnlockDisplay (dpy);
SyncHandle();
}
@@ -322,7 +327,7 @@ XFixesFetchRegionAndBounds (Display *dpy,
GetReq (XFixesFetchRegion, req);
req->reqType = info->codes->major_opcode;
req->xfixesReqType = X_XFixesFetchRegion;
- req->region = region;
+ req->region = (CARD32) region;
*nrectanglesRet = 0;
if (!_XReply (dpy, (xReply *) &rep, 0, xFalse))
{
@@ -378,8 +383,8 @@ XFixesSetGCClipRegion (Display *dpy, GC gc,
GetReq (XFixesSetGCClipRegion, req);
req->reqType = info->codes->major_opcode;
req->xfixesReqType = X_XFixesSetGCClipRegion;
- req->gc = gc->gid;
- req->region = region;
+ req->gc = (CARD32) gc->gid;
+ req->region = (CARD32) region;
req->xOrigin = clip_x_origin;
req->yOrigin = clip_y_origin;
UnlockDisplay (dpy);
@@ -398,11 +403,11 @@ XFixesSetWindowShapeRegion (Display *dpy, Window win, int shape_kind,
GetReq (XFixesSetWindowShapeRegion, req);
req->reqType = info->codes->major_opcode;
req->xfixesReqType = X_XFixesSetWindowShapeRegion;
- req->dest = win;
+ req->dest = (CARD32) win;
req->destKind = shape_kind;
req->xOff = x_off;
req->yOff = y_off;
- req->region = region;
+ req->region = (CARD32) region;
UnlockDisplay (dpy);
SyncHandle();
}
@@ -420,8 +425,8 @@ XFixesSetPictureClipRegion (Display *dpy, XID picture,
GetReq (XFixesSetPictureClipRegion, req);
req->reqType = info->codes->major_opcode;
req->xfixesReqType = X_XFixesSetPictureClipRegion;
- req->picture = picture;
- req->region = region;
+ req->picture = (CARD32) picture;
+ req->region = (CARD32) region;
req->xOrigin = clip_x_origin;
req->yOrigin = clip_y_origin;
UnlockDisplay (dpy);
@@ -441,8 +446,8 @@ XFixesExpandRegion (Display *dpy, XserverRegion dst, XserverRegion src,
GetReq (XFixesExpandRegion, req);
req->reqType = info->codes->major_opcode;
req->xfixesReqType = X_XFixesExpandRegion;
- req->source = src;
- req->destination = dst;
+ req->source = (CARD32) src;
+ req->destination = (CARD32) dst;
req->left = left;
req->right = right;
req->top = top;