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 /pkg/images/tv/display/iiszm.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'pkg/images/tv/display/iiszm.x')
-rw-r--r-- | pkg/images/tv/display/iiszm.x | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/pkg/images/tv/display/iiszm.x b/pkg/images/tv/display/iiszm.x new file mode 100644 index 00000000..d207f47a --- /dev/null +++ b/pkg/images/tv/display/iiszm.x @@ -0,0 +1,38 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include <mach.h> +include "zdisplay.h" +include "iis.h" + +# IISZM -- Zoom IIS window. + +procedure iiszm (zfactor, x, y) + +int zfactor, x, y +short zoom[LEN_ZOOM] +int status + +begin + call iishdr (IWRITE+VRETRACE, LEN_ZOOM, ZOOM, ADVXONTC, 0, 0, 0) + zoom[1] = zfactor - 1 + zoom[2] = x / MCXSCALE + zoom[3] = y / MCYSCALE + call iisio (zoom, LEN_ZOOM * SZB_CHAR, status) +end + + +# IISRM -- Roam IIS display. + +procedure iisrm (zfactor) + +int zfactor +int status, xcur, ycur +int and() + +begin + status = 0 + while (status != EOF && and (status, PUSH) == 0) { + call iisrcr (status, xcur, ycur) + call iiszm (zfactor, xcur, ycur) + } +end |