Lines Matching refs:rects
947 xRectangle *rects;
971 rects = malloc(sizeof(xRectangle));
972 if (!rects)
976 rects->x = -(int) wBorderWidth(pWin);
977 rects->y = -(int) wBorderWidth(pWin);
978 rects->width = pWin->drawable.width + wBorderWidth(pWin);
979 rects->height = pWin->drawable.height + wBorderWidth(pWin);
982 rects->x = 0;
983 rects->y = 0;
984 rects->width = pWin->drawable.width;
985 rects->height = pWin->drawable.height;
988 rects->x = -(int) wBorderWidth(pWin);
989 rects->y = -(int) wBorderWidth(pWin);
990 rects->width = pWin->drawable.width + wBorderWidth(pWin);
991 rects->height = pWin->drawable.height + wBorderWidth(pWin);
1000 rects = xallocarray(nrects, sizeof(xRectangle));
1001 if (!rects && nrects)
1004 rects[i].x = box->x1;
1005 rects[i].y = box->y1;
1006 rects[i].width = box->x2 - box->x1;
1007 rects[i].height = box->y2 - box->y1;
1021 SwapShorts((short *) rects, (unsigned long) nrects * 4);
1024 WriteToClient(client, nrects * sizeof(xRectangle), rects);
1025 free(rects);