aboutsummaryrefslogtreecommitdiff
path: root/sys/gio/gks/gqplci.x
blob: 23858491d2dfb266ddfde839e60c7f63583f3b55 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.

include	<gset.h>
include	"gks.h"

# GQPLCI -- Inquire Polyline color index.

procedure gqplci (errind, coli)

int	coli			# Color index - returned value
int	errind			# Error indicator
real	gstatr()
include	"gks.com"

begin
	if (gk_std == NULL) {
	    # GKS not in proper state; no active workstations
	    errind = 7
	    coli = -1
	    return
	} else
	    errind = 0

	iferr {
	    coli = int (gstatr (gp[gk_std], G_PLWIDTH))
	} then {
	    errind = 1
	    coli = -1
	}
end