diff options
author | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
commit | 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch) | |
tree | 4464880c571602d54f6ae114729bf62a89518057 /sys/gio/gfill.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'sys/gio/gfill.x')
-rw-r--r-- | sys/gio/gfill.x | 30 |
1 files changed, 30 insertions, 0 deletions
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 <gio.h> + +# 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 |