summaryrefslogtreecommitdiffstats
path: root/tksao/frame/box.C
diff options
context:
space:
mode:
Diffstat (limited to 'tksao/frame/box.C')
-rw-r--r--tksao/frame/box.C7
1 files changed, 4 insertions, 3 deletions
diff --git a/tksao/frame/box.C b/tksao/frame/box.C
index 0bdb01c..43e1898 100644
--- a/tksao/frame/box.C
+++ b/tksao/frame/box.C
@@ -46,10 +46,11 @@ Box::Box(Base* p, const Vector& ctr,
updateBBox();
}
-void Box::renderXDraw(Drawable drawable, GC lgc, XPoint* pp)
+void Box::renderXDraw(Drawable drawable, GC lgc, XPoint* pp, RenderMode mode)
{
- if (fill_)
- XFillPolygon(display, drawable, lgc, pp, numPoints_, Convex, CoordModeOrigin);
+ if (fill_ && mode == SRC)
+ XFillPolygon(display, drawable, lgc, pp, numPoints_, Convex,
+ CoordModeOrigin);
else
XDrawLines(display, drawable, lgc, pp, numPoints_, CoordModeOrigin);
}