aboutsummaryrefslogtreecommitdiff
path: root/sys/gio/gki/gkifaset.x
blob: 7531be73b3ee139b517d175e04e995e751eac2a2 (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
31
32
33
34
35
# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.

include	<config.h>
include	<gki.h>
include	<gio.h>

# GKI_FASET -- Set the fill area attributes.
#
# BOI GKI_FASET L FS CI
#
#        L(i)            5
#        FS(i)           fill style (0=clear,1=hollow,2=solid,3-6=hatch)
#        CI(i)           fill area color index

procedure gki_faset (fd, ap)

int	fd			# output file
pointer	ap			# pointer to fillarea attribute structure

int	epa
short	gki[GKI_FASET_LEN]
data	gki[1] /BOI/, gki[2] /GKI_FASET/, gki[3] /GKI_FASET_LEN/
include	"gki.com"

begin
	gki[GKI_FASET_FS] = FA_STYLE(ap)
	gki[GKI_FASET_CI] = FA_COLOR(ap)

	if (IS_INLINE(fd)) {
	    epa = gk_dd[GKI_FASET]
	    if (epa != 0)
		call zcall1 (epa, gki)
	} else
	    call write (gk_fd[fd], gki, GKI_FASET_LEN * SZ_SHORT)
end