Lines Matching refs:nrects
239 int nrects, ctype, rc;
268 nrects = ((stuff->length << 2) - sizeof(xShapeRectanglesReq));
269 if (nrects & 4)
271 nrects >>= 3;
273 ctype = VerifyRectOrder(nrects, prects, (int) stuff->ordering);
276 srcRgn = RegionFromRects(nrects, prects, ctype);
948 int nrects, i, rc;
970 nrects = 1;
998 nrects = RegionNumRects(region);
1000 rects = xallocarray(nrects, sizeof(xRectangle));
1001 if (!rects && nrects)
1003 for (i = 0; i < nrects; i++, box++) {
1014 .length = bytes_to_int32(nrects * sizeof(xRectangle)),
1015 .nrects = nrects
1020 swapl(&rep.nrects);
1021 SwapShorts((short *) rects, (unsigned long) nrects * 4);
1024 WriteToClient(client, nrects * sizeof(xRectangle), rects);