Searched refs:xrects (Results 1 - 2 of 2) sorted by relevance

/xsrc/external/mit/libXext/dist/src/
H A DXShape.c446 xRectangle *xrects; local in function:XShapeGetRectangles
467 xrects = Xmallocarray (rep.nrects, sizeof (xRectangle));
470 xrects = NULL;
473 if (!xrects || !rects) {
474 Xfree (xrects);
480 _XRead (dpy, (char *) xrects, rep.nrects * sizeof (xRectangle));
482 rects[i].x = (short) cvtINT16toInt (xrects[i].x);
483 rects[i].y = (short) cvtINT16toInt (xrects[i].y);
484 rects[i].width = xrects[i].width;
485 rects[i].height = xrects[
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/glx/
H A Ddri_glx.c315 XRectangle *xrects; local in function:__glXReportDamage
338 xrects = malloc(sizeof(XRectangle) * num_rects);
339 if (xrects == NULL)
343 xrects[i].x = rects[i].x1 + x_off;
344 xrects[i].y = rects[i].y1 + y_off;
345 xrects[i].width = rects[i].x2 - rects[i].x1;
346 xrects[i].height = rects[i].y2 - rects[i].y1;
348 region = XFixesCreateRegion(dpy, xrects, num_rects);
349 free(xrects);

Completed in 4 milliseconds