aboutsummaryrefslogtreecommitdiff
path: root/sys/gio/gki/gkifaset.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 /sys/gio/gki/gkifaset.x
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'sys/gio/gki/gkifaset.x')
-rw-r--r--sys/gio/gki/gkifaset.x35
1 files changed, 35 insertions, 0 deletions
diff --git a/sys/gio/gki/gkifaset.x b/sys/gio/gki/gkifaset.x
new file mode 100644
index 00000000..7531be73
--- /dev/null
+++ b/sys/gio/gki/gkifaset.x
@@ -0,0 +1,35 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+include <config.h>
+include <gki.h>
+include <gio.h>
+
+# GKI_FASET -- Set the fill area attributes.
+#
+# BOI GKI_FASET L FS CI
+#
+# L(i) 5
+# FS(i) fill style (0=clear,1=hollow,2=solid,3-6=hatch)
+# CI(i) fill area color index
+
+procedure gki_faset (fd, ap)
+
+int fd # output file
+pointer ap # pointer to fillarea attribute structure
+
+int epa
+short gki[GKI_FASET_LEN]
+data gki[1] /BOI/, gki[2] /GKI_FASET/, gki[3] /GKI_FASET_LEN/
+include "gki.com"
+
+begin
+ gki[GKI_FASET_FS] = FA_STYLE(ap)
+ gki[GKI_FASET_CI] = FA_COLOR(ap)
+
+ if (IS_INLINE(fd)) {
+ epa = gk_dd[GKI_FASET]
+ if (epa != 0)
+ call zcall1 (epa, gki)
+ } else
+ call write (gk_fd[fd], gki, GKI_FASET_LEN * SZ_SHORT)
+end