diff options
author | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
commit | 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch) | |
tree | 4464880c571602d54f6ae114729bf62a89518057 /pkg/images/tv/display/dsmap.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'pkg/images/tv/display/dsmap.x')
-rw-r--r-- | pkg/images/tv/display/dsmap.x | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkg/images/tv/display/dsmap.x b/pkg/images/tv/display/dsmap.x new file mode 100644 index 00000000..4a5f7e9c --- /dev/null +++ b/pkg/images/tv/display/dsmap.x @@ -0,0 +1,33 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include <mach.h> +include <imset.h> +include <fset.h> + +# DSMAP -- Map the display, i.e., open the display device as an imagefile. + +pointer procedure dsmap (frame, mode, color, chan) + +int frame +int mode +int color +int chan[ARB] + +pointer ds +char device[SZ_FNAME] + +int imstati(), fstati(), envgets(), imdopen() +extern imdopen() +pointer imdmap() +errchk imdmap + +begin + if (envgets ("stdimage", device, SZ_FNAME) == 0) + call error (1, "variable `stdimage' not defined in environment") + + ds = imdmap (device, mode, imdopen) + chan[1] = fstati (imstati (ds, IM_PIXFD), F_CHANNEL) + chan[2] = color + + return (ds) +end |