Lines Matching refs:prect
652 xRectangle *prect;
662 prect = malloc(sizeof(xRectangle) * npt);
663 if (!prect)
666 prect[i].x = ppt[i].x;
667 prect[i].y = ppt[i].y;
669 prect[i].x += prect[i - 1].x;
670 prect[i].y += prect[i - 1].y;
672 prect[i].width = 1;
673 prect[i].height = 1;
675 pGC->ops->PolyFillRect(pDrawable, pGC, npt, prect);
676 free(prect);
688 xRectangle *prect;
699 prect = malloc(sizeof(xRectangle) * (npt - 1));
700 if (!prect)
715 free(prect);
721 prect[i].x = x1;
722 prect[i].width = x2 - x1 + 1;
724 prect[i].x = x2;
725 prect[i].width = x1 - x2 + 1;
728 prect[i].y = y1;
729 prect[i].height = y2 - y1 + 1;
731 prect[i].y = y2;
732 prect[i].height = y1 - y2 + 1;
738 pGC->ops->PolyFillRect(pDrawable, pGC, npt - 1, prect);
739 free(prect);
750 xRectangle *prect;
768 prect = malloc(sizeof(xRectangle) * nseg);
769 if (!prect)
773 prect[i].x = pSeg[i].x1;
774 prect[i].width = pSeg[i].x2 - pSeg[i].x1 + 1;
776 prect[i].x = pSeg[i].x2;
777 prect[i].width = pSeg[i].x1 - pSeg[i].x2 + 1;
780 prect[i].y = pSeg[i].y1;
781 prect[i].height = pSeg[i].y2 - pSeg[i].y1 + 1;
783 prect[i].y = pSeg[i].y2;
784 prect[i].height = pSeg[i].y1 - pSeg[i].y2 + 1;
789 if (prect[i].width == 1)
790 prect[i].height--;
792 prect[i].width--;
795 pGC->ops->PolyFillRect(pDrawable, pGC, nseg, prect);
796 free(prect);
804 GCPtr pGC, int nrect, xRectangle * prect)
817 RegionPtr pReg = RECTS_TO_REGION(pScreen, nrect, prect, CT_UNSORTED);
868 uxa_check_poly_fill_rect(pDrawable, pGC, nrect, prect);
881 fullX1 = prect->x + xorg;
882 fullY1 = prect->y + yorg;
883 fullX2 = fullX1 + (int)prect->width;
884 fullY2 = fullY1 + (int)prect->height;
885 prect++;