summaryrefslogtreecommitdiffstats
path: root/tksao/frame/box.C
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2017-03-28 15:24:09 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2017-03-28 15:24:09 (GMT)
commitf3354d608a38ceee396fc4d2f28c069a83346145 (patch)
tree169d8942f496f46d08869121587fd0b7aca5e727 /tksao/frame/box.C
parent89ffa4a4bf0b10854c25503493fdeeb5235d128e (diff)
downloadblt-f3354d608a38ceee396fc4d2f28c069a83346145.zip
blt-f3354d608a38ceee396fc4d2f28c069a83346145.tar.gz
blt-f3354d608a38ceee396fc4d2f28c069a83346145.tar.bz2
filled regions rendered XOR as non-filled
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);
}