aboutsummaryrefslogtreecommitdiff
path: root/sys/gio/nspp/portlib/pwrt.f
diff options
context:
space:
mode:
authorJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
committerJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
commit40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch)
tree4464880c571602d54f6ae114729bf62a89518057 /sys/gio/nspp/portlib/pwrt.f
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'sys/gio/nspp/portlib/pwrt.f')
-rw-r--r--sys/gio/nspp/portlib/pwrt.f12
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/gio/nspp/portlib/pwrt.f b/sys/gio/nspp/portlib/pwrt.f
new file mode 100644
index 00000000..ebb85ca5
--- /dev/null
+++ b/sys/gio/nspp/portlib/pwrt.f
@@ -0,0 +1,12 @@
+ subroutine pwrt (x,y,chars,nchar,jsiz,jor)
+ dimension chars(1)
+ dimension jfix(4)
+ data jfix(1),jfix(2),jfix(3),jfix(4)/128,192,256,384/
+ isiz = max0(0,min0(3,jsiz))
+ call fl2int (x,y,nx,ny)
+ call getsi (ixsave,iysave)
+ nx = max0(0,ishift(nx-(1-jor)*jfix(isiz+1),ixsave-15))
+ ny = max0(0,ishift(ny-jor*jfix(isiz+1),iysave-15))
+ call pwrit (nx,ny,chars,nchar,isiz,jor*90,-1)
+ return
+ end