Lines Matching refs:parc
249 static int miGetArcPts(SppArcPtr parc, int cpt, SppPointPtr * ppPts);
383 miComputeCircleSpans(int lw, xArc * parc, miArcSpanData * spdata)
394 slw = parc->width - doinner;
395 y = parc->height >> 1;
396 dy = parc->height & 1;
399 inslw = parc->width + doinner;
431 if (lw > (int) parc->height)
432 span[-1].rx = span[-1].rw = -((lw - (int) parc->height) >> 1);
441 miComputeEllipseSpans(int lw, xArc * parc, miArcSpanData * spdata)
449 w = (double) parc->width / 2.0;
450 h = (double) parc->height / 2.0;
464 if (parc->width & 1)
476 (int) parc->height * lw <= (int) (parc->width * parc->width)
477 && lw < (int) parc->height);
748 miComputeWideEllipse(int lw, xArc * parc)
755 k = (parc->height >> 1) + ((lw - 1) >> 1);
761 spdata->top = !(lw & 1) && !(parc->width & 1);
762 spdata->bot = !(parc->height & 1);
763 if (parc->width == parc->height)
764 miComputeCircleSpans(lw, parc, spdata);
766 miComputeEllipseSpans(lw, parc, spdata);
771 miFillWideEllipse(DrawablePtr pDraw, GCPtr pGC, xArc * parc)
782 yorgu = parc->height + pGC->lineWidth;
788 spdata = miComputeWideEllipse((int) pGC->lineWidth, parc);
796 xorg = parc->x + (parc->width >> 1);
797 yorgu = parc->y + (parc->height >> 1);
798 yorgl = yorgu + (parc->height & 1);
894 xArc *parc;
909 for (i = narcs, parc = parcs; --i >= 0; parc++) {
911 spdata = miArcSegment(pDraw, pGC, *parc, NULL, NULL, NULL);
945 for (i = narcs, parc = parcs; --i >= 0; parc++) {
946 xMin = min(xMin, parc->x);
947 yMin = min(yMin, parc->y);
948 xMax = max(xMax, (parc->x + (int) parc->width));
949 yMax = max(yMax, (parc->y + (int) parc->height));
969 for (i = narcs, parc = parcs; --i >= 0; parc++) {
970 parc->x -= xOrg;
971 parc->y -= yOrg;
1646 miGetArcPts(SppArcPtr parc, /* points to an arc */
1665 st = -parc->angle1;
1667 et = -parc->angle2;
1673 cdt = parc->width;
1674 if (parc->height > cdt)
1675 cdt = parc->height;
1692 xc = parc->width / 2.0; /* store half width and half height */
1693 yc = parc->height / 2.0;
1699 xc += parc->x; /* by adding initial point, these become */
1700 yc += parc->y; /* the center point */
1720 if (fabs(parc->angle2) >= 360.0)
1723 poly[cpt + i - 1].x = (miDcos(st + et) * parc->width / 2.0 + xc);
1724 poly[cpt + i - 1].y = (miDsin(st + et) * parc->height / 2.0 + yc);