From fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 8 Jul 2015 20:46:52 -0400 Subject: Initial commit --- sys/gio/gki/gkipmset.x | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 sys/gio/gki/gkipmset.x (limited to 'sys/gio/gki/gkipmset.x') diff --git a/sys/gio/gki/gkipmset.x b/sys/gio/gki/gkipmset.x new file mode 100644 index 00000000..7bdc27ac --- /dev/null +++ b/sys/gio/gki/gkipmset.x @@ -0,0 +1,37 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include +include +include + +# GKI_PMSET -- Set the polymarker attributes. +# +# BOI GKI_PMSET L MT MW CI +# +# L(i) 6 +# MT(i) marktype (not used at present) +# MW(i) marksize, NDC coords (not used at present) +# CI(i) marker color index + +procedure gki_pmset (fd, ap) + +int fd # output file +pointer ap # pointer to polymarker attribute structure + +int epa +short gki[GKI_PMSET_LEN] +data gki[1] /BOI/, gki[2] /GKI_PMSET/, gki[3] /GKI_PMSET_LEN/ +include "gki.com" + +begin + gki[GKI_PMSET_MT] = PM_LTYPE(ap) + gki[GKI_PMSET_MW] = GKI_PACKREAL (PM_WIDTH(ap)) + gki[GKI_PMSET_CI] = PM_COLOR(ap) + + if (IS_INLINE(fd)) { + epa = gk_dd[GKI_PMSET] + if (epa != 0) + call zcall1 (epa, gki) + } else + call write (gk_fd[fd], gki, GKI_PMSET_LEN * SZ_SHORT) +end -- cgit