Lines Matching defs:newReg

459 #define Coalesce(newReg, prevBand, curBand)				\
460 if (curBand - prevBand == newReg->data->numRects - curBand) { \
461 prevBand = RegionCoalesce(newReg, prevBand, curBand); \
521 #define AppendRegions(newReg, r, rEnd) \
525 RECTALLOC(newReg, newRects); \
526 memmove((char *)RegionTop(newReg),(char *)r, \
528 newReg->data->numRects += newRects; \
573 RegionPtr newReg, /* Place to store result */
590 RegDataPtr oldData; /* Old data for newReg */
592 * previous band in newReg */
594 * band in newReg */
608 return RegionBreak (newReg);
628 if (((newReg == reg1) && (newSize > 1)) ||
629 ((newReg == reg2) && (numRects > 1)))
631 oldData = newReg->data;
632 newReg->data = &RegionEmptyData;
638 if (!newReg->data)
639 newReg->data = &RegionEmptyData;
640 else if (newReg->data->size)
641 newReg->data->numRects = 0;
642 if (newSize > newReg->data->size)
643 if (!RegionRectAlloc(newReg, newSize))
700 curBand = newReg->data->numRects;
701 RegionAppendNonO(newReg, r1, r1BandEnd, top, bot);
702 Coalesce(newReg, prevBand, curBand);
711 curBand = newReg->data->numRects;
712 RegionAppendNonO(newReg, r2, r2BandEnd, top, bot);
713 Coalesce(newReg, prevBand, curBand);
727 curBand = newReg->data->numRects;
728 (* overlapFunc)(newReg, r1, r1BandEnd, r2, r2BandEnd, ytop, ybot,
730 Coalesce(newReg, prevBand, curBand);
753 curBand = newReg->data->numRects;
754 RegionAppendNonO(newReg, r1, r1BandEnd, max(r1y1, ybot), r1->y2);
755 Coalesce(newReg, prevBand, curBand);
757 AppendRegions(newReg, r1BandEnd, r1End);
762 curBand = newReg->data->numRects;
763 RegionAppendNonO(newReg, r2, r2BandEnd, max(r2y1, ybot), r2->y2);
764 Coalesce(newReg, prevBand, curBand);
766 AppendRegions(newReg, r2BandEnd, r2End);
771 if (!(numRects = newReg->data->numRects))
773 xfreeData(newReg);
774 newReg->data = &RegionEmptyData;
778 newReg->extents = *RegionBoxptr(newReg);
779 xfreeData(newReg);
780 newReg->data = NULL;
784 DOWNSIZE(newReg, numRects);