aboutsummaryrefslogtreecommitdiff
path: root/sys/gio/gks/gqcntn.x
diff options
context:
space:
mode:
Diffstat (limited to 'sys/gio/gks/gqcntn.x')
-rw-r--r--sys/gio/gks/gqcntn.x30
1 files changed, 30 insertions, 0 deletions
diff --git a/sys/gio/gks/gqcntn.x b/sys/gio/gks/gqcntn.x
new file mode 100644
index 00000000..aaaa79bf
--- /dev/null
+++ b/sys/gio/gks/gqcntn.x
@@ -0,0 +1,30 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+include <gset.h>
+include "gks.h"
+
+# GQCNTN -- Inquire current normalization transformation number (WCS).
+
+procedure gqcntn (errind, cntr)
+
+int errind # Error indicator; errind = 0 means no error
+int cntr # Current normalization transformation number
+int gstati()
+include "gks.com"
+
+begin
+ if (gk_std == NULL) {
+ # GKS not in proper state; no active workstations
+ errind = 7
+ cntr = -1
+ return
+ } else
+ errind = 0
+
+ iferr {
+ cntr = gstati (gp[gk_std], G_WCS)
+ } then {
+ errind = 1
+ cntr = -1
+ }
+end