diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
commit | fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch) | |
tree | bdda434976bc09c864f2e4fa6f16ba1952b1e555 /sys/gio/imdkern/imdreset.x | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'sys/gio/imdkern/imdreset.x')
-rw-r--r-- | sys/gio/imdkern/imdreset.x | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/sys/gio/imdkern/imdreset.x b/sys/gio/imdkern/imdreset.x new file mode 100644 index 00000000..fa830e4d --- /dev/null +++ b/sys/gio/imdkern/imdreset.x @@ -0,0 +1,50 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include <gki.h> +include <gset.h> +include "imd.h" + +# IMD_RESET -- Reset the state of the transform common, i.e., in response to +# a clear or a cancel. Initialize all attribute packets to their default +# values and set the current state of the device to undefined, forcing the +# device state to be reset when the next output instruction is executed. + +procedure imd_reset() + +pointer pl, pm, fa, tx +include "imd.com" + +begin + # Set pointers to attribute substructures. + pl = IMD_PLAP(g_kt) + pm = IMD_PMAP(g_kt) + fa = IMD_FAAP(g_kt) + tx = IMD_TXAP(g_kt) + + # Initialize the attribute packets. + PL_LTYPE(pl) = 1 + PL_WIDTH(pl) = GKI_PACKREAL(1.) + PL_COLOR(pl) = 1 + PM_LTYPE(pm) = 1 + PM_WIDTH(pm) = GKI_PACKREAL(1.) + PM_COLOR(pm) = 1 + FA_STYLE(fa) = 1 + FA_COLOR(fa) = 1 + TX_UP(tx) = 90 + TX_SIZE(tx) = GKI_PACKREAL(1.) + TX_PATH(tx) = GT_RIGHT + TX_HJUSTIFY(tx) = GT_LEFT + TX_VJUSTIFY(tx) = GT_BOTTOM + TX_FONT(tx) = GT_ROMAN + TX_COLOR(tx) = 1 + TX_SPACING(tx) = 0.0 + + # Set the device attributes to undefined, forcing them to be reset + # when the next output instruction is executed. + + IMD_TYPE(g_kt) = -1 + IMD_WIDTH(g_kt) = -1 + IMD_COLOR(g_kt) = -1 + IMD_TXSIZE(g_kt) = -1 + IMD_TXFONT(g_kt) = -1 +end |