diff options
Diffstat (limited to 'otherlibs/graph/fill.c')
-rw-r--r-- | otherlibs/graph/fill.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/otherlibs/graph/fill.c b/otherlibs/graph/fill.c index edf75925e..b00357f60 100644 --- a/otherlibs/graph/fill.c +++ b/otherlibs/graph/fill.c @@ -22,6 +22,7 @@ value gr_fill_rect(vx, vy, vw, vh) int w = Int_val(vw); int h = Int_val(vh); + gr_check_open(); XFillRectangle(grdisplay, grwindow.win, grwindow.gc, x, Wcvt(y) - h + 1, w, h); XFillRectangle(grdisplay, grbstore.win, grbstore.gc, @@ -36,6 +37,7 @@ value gr_fill_poly(array) XPoint * points; int npoints, i; + gr_check_open(); npoints = Wosize_val(array); points = (XPoint *) stat_alloc(npoints * sizeof(XPoint)); for (i = 0; i < npoints; i++) { @@ -64,6 +66,7 @@ value gr_fill_arc_nat(vx, vy, vrx, vry, va1, va2) int a1 = Int_val(va1); int a2 = Int_val(va2); + gr_check_open(); XFillArc(grdisplay, grwindow.win, grwindow.gc, x - rx, Wcvt(y) - ry, rx * 2, ry * 2, a1 * 64, (a2 - a1) * 64); XFillArc(grdisplay, grbstore.win, grbstore.gc, |