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/gamove.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'sys/gio/gamove.x')
-rw-r--r-- | sys/gio/gamove.x | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/sys/gio/gamove.x b/sys/gio/gamove.x new file mode 100644 index 00000000..7c40d1b7 --- /dev/null +++ b/sys/gio/gamove.x @@ -0,0 +1,27 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include <gki.h> +include <gio.h> + +# GAMOVE -- Absolute move. Move the pen to the indicated position in +# preparation for a draw. + +procedure gamove (gp, x, y) + +pointer gp # graphics descriptor +real x, y # new position of pen +include "gpl.com" + +begin + if (op > 1) + call gpl_flush() + + if (IS_INDEF(x) || IS_INDEF(y)) { + # Set current position to indefinite. + cx = INDEF + cy = INDEF + } else { + # Set current position to (x,y) in GKI coordinates. + call gpl_wcstogki (gp, x, y, cx, cy) + } +end |