aboutsummaryrefslogtreecommitdiff
path: root/pkg/images/tv/display/iiszm.x
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
commitfa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch)
treebdda434976bc09c864f2e4fa6f16ba1952b1e555 /pkg/images/tv/display/iiszm.x
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'pkg/images/tv/display/iiszm.x')
-rw-r--r--pkg/images/tv/display/iiszm.x38
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