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