aboutsummaryrefslogtreecommitdiff
path: root/sys/gio/gks/gqpmci.x
blob: d1760d15eea806f93eebaee92c3e3e6397cb49af (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"

# GQPMCI -- Inquire Polymarker color index.

procedure gqpmci (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_PMWIDTH))
	} then {
	    errind = 1
	    coli = -1
	}
end