Lines Matching refs:prect
619 xRectangle *prect; in exaPolyPoint() local
629 prect = xallocarray(npt, sizeof(xRectangle)); in exaPolyPoint()
631 prect[i].x = ppt[i].x; in exaPolyPoint()
632 prect[i].y = ppt[i].y; in exaPolyPoint()
634 prect[i].x += prect[i - 1].x; in exaPolyPoint()
635 prect[i].y += prect[i - 1].y; in exaPolyPoint()
637 prect[i].width = 1; in exaPolyPoint()
638 prect[i].height = 1; in exaPolyPoint()
640 pGC->ops->PolyFillRect(pDrawable, pGC, npt, prect); in exaPolyPoint()
641 free(prect); in exaPolyPoint()
654 xRectangle *prect; in exaPolylines() local
670 prect = xallocarray(npt - 1, sizeof(xRectangle)); in exaPolylines()
685 free(prect); in exaPolylines()
691 prect[i].x = x1; in exaPolylines()
692 prect[i].width = x2 - x1 + 1; in exaPolylines()
695 prect[i].x = x2; in exaPolylines()
696 prect[i].width = x1 - x2 + 1; in exaPolylines()
699 prect[i].y = y1; in exaPolylines()
700 prect[i].height = y2 - y1 + 1; in exaPolylines()
703 prect[i].y = y2; in exaPolylines()
704 prect[i].height = y1 - y2 + 1; in exaPolylines()
710 pGC->ops->PolyFillRect(pDrawable, pGC, npt - 1, prect); in exaPolylines()
711 free(prect); in exaPolylines()
723 xRectangle *prect; in exaPolySegment() local
741 prect = xallocarray(nseg, sizeof(xRectangle)); in exaPolySegment()
744 prect[i].x = pSeg[i].x1; in exaPolySegment()
745 prect[i].width = pSeg[i].x2 - pSeg[i].x1 + 1; in exaPolySegment()
748 prect[i].x = pSeg[i].x2; in exaPolySegment()
749 prect[i].width = pSeg[i].x1 - pSeg[i].x2 + 1; in exaPolySegment()
752 prect[i].y = pSeg[i].y1; in exaPolySegment()
753 prect[i].height = pSeg[i].y2 - pSeg[i].y1 + 1; in exaPolySegment()
756 prect[i].y = pSeg[i].y2; in exaPolySegment()
757 prect[i].height = pSeg[i].y1 - pSeg[i].y2 + 1; in exaPolySegment()
762 if (prect[i].width == 1) in exaPolySegment()
763 prect[i].height--; in exaPolySegment()
765 prect[i].width--; in exaPolySegment()
768 pGC->ops->PolyFillRect(pDrawable, pGC, nseg, prect); in exaPolySegment()
769 free(prect); in exaPolySegment()
777 exaPolyFillRect(DrawablePtr pDrawable, GCPtr pGC, int nrect, xRectangle *prect) in exaPolyFillRect() argument
792 RegionPtr pReg = RegionFromRects(nrect, prect, CT_UNSORTED); in exaPolyFillRect()
849 ExaCheckPolyFillRect(pDrawable, pGC, nrect, prect); in exaPolyFillRect()
862 fullX1 = prect->x + xorg; in exaPolyFillRect()
863 fullY1 = prect->y + yorg; in exaPolyFillRect()
864 fullX2 = fullX1 + (int) prect->width; in exaPolyFillRect()
865 fullY2 = fullY1 + (int) prect->height; in exaPolyFillRect()
866 prect++; in exaPolyFillRect()