h04801
s 00002/00002/00066
d D 1.2 83/03/31 12:31:30 mmm 2 1
c 
e
s 00068/00000/00000
d D 1.1 83/03/15 21:37:45 tes 1 0
c date and time created 83/03/15 21:37:45 by tes
e
u
4
U
t
T
I 1
subroutine gimxds (wktype,errind,dcunit,szlx,szly,szrx,szry)
########################################################################
#                                                                      #
#          THIS MATERIAL IS CONFIDENTIAL AND IS FURNISHED UNDER        #
#          A WRITTEN LICENSE AGREEMENT.  IT MAY NOT BE USED,           #
#          COPIED OR DISCLOSED TO OTHERS EXCEPT IN ACCORDANCE          #
#          WITH THE TERMS OF THAT AGREEMENT.                           #
#                                                                      #
#          COPYRIGHT (C) 1982 GRAPHIC SOFTWARE SYSTEMS INC.            #
#          ALL RIGHTS RESERVED.                                        #
#                                                                      #
#     Function: Inquire maximum display surface size                   #
#                                                                      #
#     Input Parameters:                                                #
#            wktype - workstation type                                 #
#     Output Parameters:                                               #
#            errind - error indicator                                  #
#            dcunit - device coordinate units (0=metres, 1=other)      #
#            szlx   - maximum display surface size (DC)                #
#            szly   -                                                  #
#            szrx   - maximum display surface size (raster units)      #
#            szry   -                                                  #
#                                                                      #
#     Errors:                                                          #
#            7  GKS not in proper state: GKS must be in one of the     #
#               states WSOP, WSAC, or SGOP                             #
#           22  Specified workstation type is invalid                  #
#           23  Specified workstation does not exist                   #
#           30  Specified workstation is a GKS metafile output         #
#               workstation                                            #
#                                                                      #
#     Routines Called:                                                 #
#            errchk - perform appropriate error checking               #
#                                                                      #
########################################################################
integer  wktype, errind, dcunit, szrx, szry
real szlx, szly

ifdef(`ERROR_ON',`
   integer errchk, ierdum, ierary(1), erary1
   ')

include(`gkscom')

ifdef(`ERROR_ON',`
   equivalence (ierary(1), erary1)
   ')
 
   # In all inquiry routines, initialize errind to 0 (zero).
   errind = 0

   ifdef(`ERROR_ON',`
      rounum = GIMXDS
      #   ierary(1) = wktype
      erary1 = wktype
      errind = errchk(ierdum, ierary)
      if (errind != 0) return
      ')

   dcunit = devcor  # Get values from workstation table common
   szrx = mxdsdc(1)
   szry = mxdsdc(2)

D 2
   PUTREAL(mxdsln(1), szlx)    # Put back into user format reals
   PUTREAL(mxdsln(2), szly)
E 2
I 2
   call ptreal (mxdsln(1), 0, szlx)    # Put back into user format reals
   call ptreal (mxdsln(2), 0, szly)
E 2
      
   return
end
E 1
