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/cursor/gtrgtran.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'sys/gio/cursor/gtrgtran.x')
-rw-r--r-- | sys/gio/cursor/gtrgtran.x | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/sys/gio/cursor/gtrgtran.x b/sys/gio/cursor/gtrgtran.x new file mode 100644 index 00000000..c83c83aa --- /dev/null +++ b/sys/gio/cursor/gtrgtran.x @@ -0,0 +1,28 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include <gio.h> +include <gki.h> +include "gtr.h" + +# GTR_GTRAN -- Get the workstation transformation. + +procedure gtr_gtran (fd, x1, x2, y1, y2) + +int fd # graphics stream to be set +real x1, x2 # range of workstation viewport in X +real y1, y2 # range of workstation viewport in Y +include "gtr.com" + +begin + if (wstranset == YES) { + x1 = vx1 + x2 = vx2 + y1 = vy1 + y2 = vy2 + } else { + x1 = 0 + x2 = 1.0 + y1 = 0 + y2 = 1.0 + } +end |