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/gplreset.x | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 sys/gio/gplreset.x (limited to 'sys/gio/gplreset.x') 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 + +# 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 -- cgit