summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjoye <joye>2015-06-24 17:07:57 (GMT)
committerjoye <joye>2015-06-24 17:07:57 (GMT)
commitaf9fddeb96f92bc4e9ff9f76147a6975fdd74879 (patch)
treece5193dc9a62b4492a27d9451581053b25fbe5e6 /src
parentf6d407d3e0681a880c32144714da9893fa970df3 (diff)
downloadblt-af9fddeb96f92bc4e9ff9f76147a6975fdd74879.zip
blt-af9fddeb96f92bc4e9ff9f76147a6975fdd74879.tar.gz
blt-af9fddeb96f92bc4e9ff9f76147a6975fdd74879.tar.bz2
*** empty log message ***
Diffstat (limited to 'src')
-rw-r--r--src/bltGrElemLine.C30
1 files changed, 7 insertions, 23 deletions
diff --git a/src/bltGrElemLine.C b/src/bltGrElemLine.C
index 2a2dab2..af33208 100644
--- a/src/bltGrElemLine.C
+++ b/src/bltGrElemLine.C
@@ -2051,34 +2051,18 @@ void LineElement::drawSCross(Display* display, Drawable drawable,
pattern[1].x = pattern[3].y = r2;
}
- int count = 0;
- XSegment* segments = new XSegment[nSymbolPts*2];
- XSegment* sp;
- Point2d *pp, *endp;
- for (sp=segments, pp=symbolPts, endp=pp+nSymbolPts; pp<endp; pp++) {
+ for (Point2d *pp=symbolPts, *endp=pp+nSymbolPts; pp<endp; pp++) {
if (DRAW_SYMBOL()) {
int rndx = pp->x;
int rndy = pp->y;
- sp->x1 = pattern[0].x + rndx;
- sp->y1 = pattern[0].y + rndy;
- sp->x2 = pattern[1].x + rndx;
- sp->y2 = pattern[1].y + rndy;
- sp++;
- count++;
- sp->x1 = pattern[2].x + rndx;
- sp->y1 = pattern[2].y + rndy;
- sp->x2 = pattern[3].x + rndx;
- sp->y2 = pattern[3].y + rndy;
- sp++;
- count++;
+ XDrawLine(graphPtr_->display_, drawable, penOps->symbol.outlineGC,
+ pattern[0].x + rndx, pattern[0].y + rndy,
+ pattern[1].x + rndx, pattern[1].y + rndy);
+ XDrawLine(graphPtr_->display_, drawable, penOps->symbol.outlineGC,
+ pattern[2].x + rndx, pattern[2].y + rndy,
+ pattern[3].x + rndx, pattern[3].y + rndy);
}
- symbolCounter_++;
}
-
- XDrawSegments(graphPtr_->display_, drawable, penOps->symbol.outlineGC,
- segments, count);
-
- delete [] segments;
}
void LineElement::drawCross(Display *display, Drawable drawable,