Lines Matching refs:dx

59 	edge->e += edge->dx; \
78 XAAFillRectHelper(ScrnInfoPtr pScrn, int x1, int y1, int dx, int dy)
82 int x2 = x1 + dx;
87 if((dx = x2 - x1)<1) return;
92 (*infoRec->SubsequentSolidFillRect)(pScrn, x1, y1, dx, dy);
115 #define FixError(x, dx, dy, e, sign, step, h) { \
116 e += (h) * dx; \
165 left_dx = left->dx;
176 right_dx = right->dx;
243 int dx, dy;
275 dx = x2 - x1;
276 if (dx < 0)
281 leftFace->dx = dx;
286 rightFace->dx = -dx;
292 rightFace->k = -(double) (lw * dx) / 2.0;
300 dx = x2 - x;
302 dx += ((lw + 1) >> 1);
304 FILL_RECT(infoRec->pScrn, x, y, dx, dy);
305 } else if (!dx) {
319 dx = lw;
320 FILL_RECT(infoRec->pScrn, x, y, dx, dy);
323 L = sqrt((double)(dx*dx + dy*dy));
325 if (dx < 0) {
339 ya = -r * dx;
345 /* xa * dy - ya * dx */
357 k, dx, dy, x1, y1, 0, right);
360 k, dx, dy, x1, y1, 0, right);
366 /* xa * dy - ya * dx */
371 k, dx, dy, x1, y1, 1, left);
374 k, dx, dy, x1, y1, 1, left);
386 topy = miPolyBuildEdge (xap, yap, xap * dx + yap * dy,
387 -dy, dx, x1, y1, dx > 0, top);
391 -dy, dx, x1, y1, dx > 0, top);
398 bottomy = miPolyBuildEdge (xap, yap, xap * dx + yap * dy,
399 -dy, dx, x2, y2, dx < 0, bottom);
403 -dy, dx, x2, y2, dx < 0, bottom);
409 if (dx < 0) {
673 if ((pLeft->dx >= 0) == (pRight->dx <= 0))
676 denom = - pLeft->dx * (double)pRight->dy + pRight->dx *
692 denom = - pLeft->dx * (double)pRight->dy + pRight->dx *
702 pLeft->dx = -pLeft->dx;
708 pRight->dx = -pRight->dx;
714 slopes[0].dx = -pRight->dy;
715 slopes[0].dy = pRight->dx;
720 slopes[1].dx = pLeft->dy;
721 slopes[1].dy = -pLeft->dx;
728 my = (pLeft->dy * (pRight->xa * pRight->dy - pRight->ya * pRight->dx) -
729 pRight->dy * (pLeft->xa * pLeft->dy - pLeft->ya * pLeft->dx ))/
733 (double) pLeft->dx / (double) pLeft->dy;
736 (double) pRight->dx / (double) pRight->dy;
744 slopes[2].dx = pLeft->dx;
748 slopes[2].dx = -slopes[2].dx;
754 slopes[3].dx = pRight->dx;
758 slopes[3].dx = -slopes[3].dx;
764 double scale, dx, dy, adx, ady;
766 adx = dx = pRight->xa - pLeft->xa;
775 slopes[2].dx = (dx * 65536) / scale;
778 (pLeft->ya + pRight->ya) * slopes[2].dx) / 2.0;
910 rightFace.dx = -1; /* sleezy hack to make it work */