summaryrefslogtreecommitdiffstats
path: root/src/bltGrAxis.C
diff options
context:
space:
mode:
authorjoye <joye>2014-05-21 19:03:48 (GMT)
committerjoye <joye>2014-05-21 19:03:48 (GMT)
commitaf45850d31b3e6584ca2c737ff78f9c793668c46 (patch)
tree27803f143b7f979a52f7dd3401f37124ea7cabe4 /src/bltGrAxis.C
parentcd469b4255c3b34ab0adf63169a1811d4971f53e (diff)
downloadblt-af45850d31b3e6584ca2c737ff78f9c793668c46.zip
blt-af45850d31b3e6584ca2c737ff78f9c793668c46.tar.gz
blt-af45850d31b3e6584ca2c737ff78f9c793668c46.tar.bz2
*** empty log message ***
Diffstat (limited to 'src/bltGrAxis.C')
-rw-r--r--src/bltGrAxis.C13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/bltGrAxis.C b/src/bltGrAxis.C
index 3c61a00..65bbe79 100644
--- a/src/bltGrAxis.C
+++ b/src/bltGrAxis.C
@@ -500,10 +500,12 @@ void Axis::draw(Drawable drawable)
if (ops->hide || !use_)
return;
- if (ops->normalBg)
+ if (ops->normalBg) {
+ int relief = active_ ? ops->activeRelief : ops->relief;
Tk_Fill3DRectangle(graphPtr_->tkwin_, drawable, ops->normalBg,
left_, top_, right_ - left_, bottom_ - top_,
- ops->borderWidth, ops->relief);
+ ops->borderWidth, relief);
+ }
if (ops->title) {
TextStyle ts(graphPtr_);
@@ -517,7 +519,6 @@ void Axis::draw(Drawable drawable)
ts.xPad_ = 1;
ts.yPad_ = 0;
-
ts.drawText(drawable, ops->title, titlePos_.x, titlePos_.y);
}
@@ -1669,10 +1670,12 @@ void Axis::print(Blt_Ps ps)
return;
Blt_Ps_Format(ps, "%% Axis \"%s\"\n", name_);
- if (ops->normalBg)
+ if (ops->normalBg) {
+ int relief = active_ ? ops->activeRelief : ops->relief;
Blt_Ps_Fill3DRectangle(ps, ops->normalBg, left_, top_,
right_ - left_, bottom_ - top_,
- ops->borderWidth, ops->relief);
+ ops->borderWidth, relief);
+ }
if (ops->title) {
TextStyle ts(graphPtr_);