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/imdline.x | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'sys/gio/imdkern/imdline.x')
-rw-r--r-- | sys/gio/imdkern/imdline.x | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/sys/gio/imdkern/imdline.x b/sys/gio/imdkern/imdline.x new file mode 100644 index 00000000..86f32c0a --- /dev/null +++ b/sys/gio/imdkern/imdline.x @@ -0,0 +1,31 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include <gset.h> +include "imd.h" + +# IMD_LINETYPE -- Set the line type option. + +procedure imd_linetype (index) + +int index # index for line type switch statement + +int linetype +include "imd.com" + +begin + switch (index) { + case GL_CLEAR: + linetype = 0 + case GL_DASHED: + linetype = 2 + case GL_DOTTED: + linetype = 3 + case GL_DOTDASH: + linetype = 4 + default: + linetype = 1 # solid + } + + # This will be done in software in a future version of the IMD kernel. + # call idk_linetype (g_out, linetype) +end |