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 /noao/imred/vtel/pixbit.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'noao/imred/vtel/pixbit.x')
-rw-r--r-- | noao/imred/vtel/pixbit.x | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/noao/imred/vtel/pixbit.x b/noao/imred/vtel/pixbit.x new file mode 100644 index 00000000..a6db321a --- /dev/null +++ b/noao/imred/vtel/pixbit.x @@ -0,0 +1,23 @@ +# PIXBIT -- Look up which bits should be set for this character on this line. + +procedure pixbit (code, line, bitarray) + +int code # character we are writing +int line # line of the character we are writing +int bitarray[5] # bit-array to receive data + +int pix, i +short asciilook[128] +short font[455] +int bitupk() +include "pixelfont.inc" +include "asciilook.inc" + +begin + pix = font[asciilook[code+1]+line-1] + bitarray[5] = bitupk (pix, 1, 1) + bitarray[4] = bitupk (pix, 4, 1) + bitarray[3] = bitupk (pix, 7, 1) + bitarray[2] = bitupk (pix, 10, 1) + bitarray[1] = bitupk (pix, 13, 1) +end |