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/gplreset.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'sys/gio/gplreset.x')
-rw-r--r-- | sys/gio/gplreset.x | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/sys/gio/gplreset.x b/sys/gio/gplreset.x new file mode 100644 index 00000000..888fd99e --- /dev/null +++ b/sys/gio/gplreset.x @@ -0,0 +1,27 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include <gio.h> + +# GPL_RESET -- Reset the state of the GPL common, forcing a call to +# re-initialize the cache in the next GADRAW call. Should be called at +# GOPEN time and thereafter whenever the a WCS is modified or an polyline, +# polymarker, etc. attribute is set. + +procedure gpl_reset() + +bool first_time +include "gpl.com" +data first_time /true/ + +begin + if (first_time) { + op = 1 + first_time = false + } else + call gpl_flush() + + wcs = -1 + gp_out = NULL + pl_type = POLYLINE + last_point_inbounds = false +end |