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