diff options
author | joye <joye> | 2014-06-16 22:22:04 (GMT) |
---|---|---|
committer | joye <joye> | 2014-06-16 22:22:04 (GMT) |
commit | 6f6b4207c4a700e54909da932cb77cc97e9e31c8 (patch) | |
tree | cb55038a5128cc7d3b7e7ea9dea7217f48d3f492 /src | |
parent | 26f23f0dc83d24caef81f34f817e2bfa0bb8f8a0 (diff) | |
download | blt-6f6b4207c4a700e54909da932cb77cc97e9e31c8.zip blt-6f6b4207c4a700e54909da932cb77cc97e9e31c8.tar.gz blt-6f6b4207c4a700e54909da932cb77cc97e9e31c8.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'src')
-rw-r--r-- | src/bltGrElemLine.C | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/src/bltGrElemLine.C b/src/bltGrElemLine.C index 9f8da0a..dfc4e44 100644 --- a/src/bltGrElemLine.C +++ b/src/bltGrElemLine.C @@ -528,7 +528,7 @@ void LineElement::draw(Drawable drawable) return; // Fill area under the curve - if (fillPts_) { + if (ops->fillBg && fillPts_) { XPoint *points = (XPoint*)malloc(sizeof(XPoint) * nFillPts_); unsigned int count =0; @@ -539,9 +539,8 @@ void LineElement::draw(Drawable drawable) points[count].y = pp->y; count++; } - if (ops->fillBg) - Tk_Fill3DPolygon(graphPtr_->tkwin_, drawable, ops->fillBg, points, - nFillPts_, 0, TK_RELIEF_FLAT); + Tk_Fill3DPolygon(graphPtr_->tkwin_, drawable, ops->fillBg, points, + nFillPts_, 0, TK_RELIEF_FLAT); free(points); } @@ -665,18 +664,10 @@ void LineElement::print(PostScript* psPtr) psPtr->format("\n%% Element \"%s\"\n\n", name_); // Draw fill area - if (fillPts_) { - // Create a path to use for both the polygon and its outline + if (ops->fillBg && fillPts_) { psPtr->append("% start fill area\n"); psPtr->printPolyline(fillPts_, nFillPts_); - - // If the background fill color was specified, draw the polygon in a - // solid fashion with that color - if (ops->fillBg) - psPtr->append("gsave fill grestore\n"); - else - psPtr->append("gsave fill grestore\n"); - + psPtr->append("gsave fill grestore\n"); psPtr->append("% end fill area\n"); } |