aboutsummaryrefslogtreecommitdiff
path: root/sys/gio/grmove.x
diff options
context:
space:
mode:
authorJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
committerJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
commit40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch)
tree4464880c571602d54f6ae114729bf62a89518057 /sys/gio/grmove.x
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'sys/gio/grmove.x')
-rw-r--r--sys/gio/grmove.x23
1 files changed, 23 insertions, 0 deletions
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 <gio.h>
+
+# 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