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