aboutsummaryrefslogtreecommitdiff
path: root/sys/gio/sgikern/sgiline.x
diff options
context:
space:
mode:
authorJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
committerJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
commit40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch)
tree4464880c571602d54f6ae114729bf62a89518057 /sys/gio/sgikern/sgiline.x
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'sys/gio/sgikern/sgiline.x')
-rw-r--r--sys/gio/sgikern/sgiline.x31
1 files changed, 31 insertions, 0 deletions
diff --git a/sys/gio/sgikern/sgiline.x b/sys/gio/sgikern/sgiline.x
new file mode 100644
index 00000000..086ac158
--- /dev/null
+++ b/sys/gio/sgikern/sgiline.x
@@ -0,0 +1,31 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+include <gset.h>
+include "sgi.h"
+
+# SGI_LINETYPE -- Set the line type option.
+
+procedure sgi_linetype (index)
+
+int index # index for line type switch statement
+
+int linetype
+include "sgi.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 SGI kernel.
+ # call sgk_linetype (g_out, linetype)
+end