void fbZeroLine (DrawablePtr pDrawable, GCPtr pGC, int mode, int npt, DDXPointPtr ppt) { int x1, y1, x2, y2; int x, y; int dashOffset; x = pDrawable->x; y = pDrawable->y; x1 = ppt->x; y1 = ppt->y; dashOffset = pGC->dashOffset; while (--npt) { ++ppt; x2 = ppt->x; y2 = ppt->y; if (mode == CoordModePrevious) { x2 += x1; y2 += y1; } fbSegment (pDrawable, pGC, x1 + x, y1 + y, x2 + x, y2 + y, npt == 1 && pGC->capStyle != CapNotLast, &dashOffset); x1 = x2; y1 = y2; } }
static void fbZeroLine(DrawablePtr drawable, GCPtr gc, int mode, int n, DDXPointPtr pt) { int x1, y1, x2, y2; int x, y; int dashOffset; x = drawable->x; y = drawable->y; x1 = pt->x; y1 = pt->y; dashOffset = gc->dashOffset; while (--n) { ++pt; x2 = pt->x; y2 = pt->y; if (mode == CoordModePrevious) { x2 += x1; y2 += y1; } fbSegment(drawable, gc, x1 + x, y1 + y, x2 + x, y2 + y, n == 1 && gc->capStyle != CapNotLast, &dashOffset); x1 = x2; y1 = y2; } }
static void fbZeroSegment(DrawablePtr pDrawable, GCPtr pGC, int nseg, xSegment * pSegs) { int dashOffset; int x, y; Bool drawLast = pGC->capStyle != CapNotLast; x = pDrawable->x; y = pDrawable->y; while (nseg--) { dashOffset = pGC->dashOffset; fbSegment(pDrawable, pGC, pSegs->x1 + x, pSegs->y1 + y, pSegs->x2 + x, pSegs->y2 + y, drawLast, &dashOffset); pSegs++; } }
static void fbZeroSegment(DrawablePtr drawable, GCPtr gc, int n, xSegment *seg) { int dashOffset; int16_t x, y; Bool drawLast = gc->capStyle != CapNotLast; x = drawable->x; y = drawable->y; while (n--) { dashOffset = gc->dashOffset; fbSegment(drawable, gc, seg->x1 + x, seg->y1 + y, seg->x2 + x, seg->y2 + y, drawLast, &dashOffset); seg++; } }