Lines Matching refs:pRgn

345 RegionRectAlloc(RegionPtr pRgn, int n)  in RegionRectAlloc()  argument
350 if (!pRgn->data) { in RegionRectAlloc()
353 pRgn->data = (rgnSize > 0) ? malloc(rgnSize) : NULL; in RegionRectAlloc()
354 if (!pRgn->data) in RegionRectAlloc()
355 return RegionBreak(pRgn); in RegionRectAlloc()
356 pRgn->data->numRects = 1; in RegionRectAlloc()
357 *RegionBoxptr(pRgn) = pRgn->extents; in RegionRectAlloc()
359 else if (!pRgn->data->size) { in RegionRectAlloc()
361 pRgn->data = (rgnSize > 0) ? malloc(rgnSize) : NULL; in RegionRectAlloc()
362 if (!pRgn->data) in RegionRectAlloc()
363 return RegionBreak(pRgn); in RegionRectAlloc()
364 pRgn->data->numRects = 0; in RegionRectAlloc()
368 n = pRgn->data->numRects; in RegionRectAlloc()
372 n += pRgn->data->numRects; in RegionRectAlloc()
374 data = (rgnSize > 0) ? realloc(pRgn->data, rgnSize) : NULL; in RegionRectAlloc()
376 return RegionBreak(pRgn); in RegionRectAlloc()
377 pRgn->data = data; in RegionRectAlloc()
379 pRgn->data->size = n; in RegionRectAlloc()
1318 RegionPtr pRgn; in RegionFromRects() local
1325 pRgn = RegionCreate(NullBox, 0); in RegionFromRects()
1326 if (RegionNar(pRgn)) in RegionFromRects()
1327 return pRgn; in RegionFromRects()
1329 return pRgn; in RegionFromRects()
1338 pRgn->extents.x1 = x1; in RegionFromRects()
1339 pRgn->extents.y1 = y1; in RegionFromRects()
1340 pRgn->extents.x2 = x2; in RegionFromRects()
1341 pRgn->extents.y2 = y2; in RegionFromRects()
1342 pRgn->data = NULL; in RegionFromRects()
1344 return pRgn; in RegionFromRects()
1349 RegionBreak(pRgn); in RegionFromRects()
1350 return pRgn; in RegionFromRects()
1371 pRgn->data = pData; in RegionFromRects()
1375 pRgn->extents.x1 = pRgn->extents.x2 = 0; in RegionFromRects()
1376 RegionValidate(pRgn, &overlap); in RegionFromRects()
1379 RegionSetExtents(pRgn); in RegionFromRects()
1380 good(pRgn); in RegionFromRects()
1385 return pRgn; in RegionFromRects()