From 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 Mon Sep 17 00:00:00 2001 From: Joe Hunkeler Date: Tue, 11 Aug 2015 16:51:37 -0400 Subject: Repatch (from linux) of OSX IRAF --- sys/gio/grmove.x | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 sys/gio/grmove.x (limited to 'sys/gio/grmove.x') diff --git a/sys/gio/grmove.x b/sys/gio/grmove.x new file mode 100644 index 00000000..aa4e5b45 --- /dev/null +++ b/sys/gio/grmove.x @@ -0,0 +1,23 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include + +# GRMOVE -- Relative move, i.e., move the pen to the specified offset from the +# current position (without generating any output). + +procedure grmove (gp, x, y) + +pointer gp # graphics descriptor +real x, y # offset from current position +real cx, cy + +begin + call gpl_flush() + if (IS_INDEF(x) || IS_INDEF(y)) + call gadraw (gp, x, y) + else { + call gcurpos (gp, cx, cy) + if (!(IS_INDEF(cx) || IS_INDEF(cy))) + call gamove (gp, cx + x, cy + y) + } +end -- cgit