diff options
author | joye <joye> | 2014-05-02 19:35:13 (GMT) |
---|---|---|
committer | joye <joye> | 2014-05-02 19:35:13 (GMT) |
commit | ca2e0a59b9e6727fde8fb2162ec874ee7a3e2fa4 (patch) | |
tree | 0d7b7a588672d8ee93d8b713d43ef1863ed99fc3 /src/bltGrElemLine.C | |
parent | 48b2fa866199e8a9f207a1a8c670bec1eeb87339 (diff) | |
download | blt-ca2e0a59b9e6727fde8fb2162ec874ee7a3e2fa4.zip blt-ca2e0a59b9e6727fde8fb2162ec874ee7a3e2fa4.tar.gz blt-ca2e0a59b9e6727fde8fb2162ec874ee7a3e2fa4.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'src/bltGrElemLine.C')
-rw-r--r-- | src/bltGrElemLine.C | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/bltGrElemLine.C b/src/bltGrElemLine.C index 925c9ce..742e94c 100644 --- a/src/bltGrElemLine.C +++ b/src/bltGrElemLine.C @@ -101,9 +101,6 @@ static Tk_OptionSpec optionSpecs[] = { {TK_OPTION_CUSTOM, "-activepen", "activePen", "ActivePen", "active", -1, Tk_Offset(LineElementOptions, activePenPtr), TK_OPTION_NULL_OK, &penObjOption, 0}, - {TK_OPTION_COLOR, "-areaforeground", "areaForeground", "AreaForeground", - NULL, -1, Tk_Offset(LineElementOptions, fillFgColor), - TK_OPTION_NULL_OK, NULL, 0}, {TK_OPTION_BORDER, "-areabackground", "areaBackground", "AreaBackground", NULL, -1, Tk_Offset(LineElementOptions, fillBg), TK_OPTION_NULL_OK, NULL, MAP_ITEM}, @@ -238,8 +235,6 @@ LineElement::LineElement(Graph* graphPtr, const char* name, Tcl_HashEntry* hPtr) : Element(graphPtr, name, hPtr) { smooth_ = LINEAR; - fillBgColor_ =NULL; - fillGC_ = NULL; fillPts_ =NULL; nFillPts_ = 0; @@ -302,8 +297,6 @@ LineElement::~LineElement() if (fillPts_) free(fillPts_); - if (fillGC_) - Tk_FreeGC(graphPtr_->display_, fillGC_); } int LineElement::configure() @@ -323,23 +316,6 @@ int LineElement::configure() LineStyle* stylePtr = (LineStyle*)Blt_Chain_GetValue(link); stylePtr->penPtr = NORMALPEN(ops); - // Set the outline GC for this pen: GCForeground is outline color. - // GCBackground is the fill color (only used for bitmap symbols). - unsigned long gcMask =0; - XGCValues gcValues; - if (ops->fillFgColor) { - gcMask |= GCForeground; - gcValues.foreground = ops->fillFgColor->pixel; - } - if (fillBgColor_) { - gcMask |= GCBackground; - gcValues.background = fillBgColor_->pixel; - } - GC newGC = Tk_GetGC(graphPtr_->tkwin_, gcMask, &gcValues); - if (fillGC_) - Tk_FreeGC(graphPtr_->display_, fillGC_); - fillGC_ = newGC; - return TCL_OK; } @@ -748,11 +724,6 @@ void LineElement::print(Blt_Ps ps) // If the background fill color was specified, draw the polygon in a // solid fashion with that color - if (fillBgColor_) { - Blt_Ps_XSetBackground(ps, fillBgColor_); - Blt_Ps_Append(ps, "gsave fill grestore\n"); - } - Blt_Ps_XSetForeground(ps, ops->fillFgColor); if (ops->fillBg) Blt_Ps_Append(ps, "gsave fill grestore\n"); else |