aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2014-10-19 23:32:36 +0000
committerDimitri Sokolyuk <demon@dim13.org>2014-10-19 23:32:36 +0000
commitf549aec7a66064e9c803b2289fc404ad71d5fc7f (patch)
tree9784e7288006032b16d34a0f431383c22c485c6e
parent2ecca728b2bb12b63dc9d7dfc2d8e1ec78450043 (diff)
fix clipmask
-rw-r--r--Sgraph.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Sgraph.c b/Sgraph.c
index 380ded3..be43eda 100644
--- a/Sgraph.c
+++ b/Sgraph.c
@@ -120,13 +120,13 @@ GetGC(Widget w)
xgcv.foreground = sw->sgraph.foreground;
sw->sgraph.foreGC = XtGetGC(w, gc_mask, &xgcv);
- /*
+#if 1
gc_mask |= GCClipMask;
xgcv.clip_mask = sw->sgraph.mask;
sw->sgraph.clipGC = XtGetGC(w, gc_mask, &xgcv);
- gc_mask ^= ~GCClipMask;
- */
+ gc_mask &= ~GCClipMask;
+#endif
xgcv.plane_mask = 1;
sw->sgraph.maskGC = XtGetGC(w, gc_mask, &xgcv);
}
@@ -146,8 +146,6 @@ Initialize(Widget request, Widget w, ArgList args, Cardinal *nargs)
sw->core.width = 320;
sw->core.height = 120;
-
- GetGC(w);
}
static void
@@ -188,6 +186,8 @@ Resize(Widget w)
sw->sgraph.mask = XCreatePixmap(XtDisplay(sw), XtWindow(sw),
w->core.width, w->core.height, 1);
+
+ GetGC(w);
}
static void