From fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 8 Jul 2015 20:46:52 -0400 Subject: Initial commit --- sys/gio/gfill.x | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 sys/gio/gfill.x (limited to 'sys/gio/gfill.x') diff --git a/sys/gio/gfill.x b/sys/gio/gfill.x new file mode 100644 index 00000000..4db5d117 --- /dev/null +++ b/sys/gio/gfill.x @@ -0,0 +1,30 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include + +# GFILL -- Fill area. Fill the area defined by the polygon (X[i],Y[i]) in the +# indicated style. + +procedure gfill (gp, x, y, npts, style) + +pointer gp # graphics descriptor +real x[ARB], y[ARB] # polygon +int npts # npts in polygon +int style # style for area fill + +pointer ap + +begin + call gpl_flush() + + ap = GP_FAAP(gp) + if (style != FA_STYLE(ap) || FA_STATE(ap) != FIXED) { + FA_STYLE(ap) = style + call gki_faset (GP_FD(gp), ap) + FA_STATE(ap) = FIXED + } + + call gpl_settype (gp, FILLAREA) + call gpline (gp, x, y, npts) + call gpl_settype (gp, POLYLINE) +end -- cgit