.MCALL .MODULE .MODULE GQPMCI,RELEASE=V00,VERSION=30,COMMENT= .ENABLE LC .NLIST CND .LIST MEB ;+ ;************************************************************************ ;*.ST INQUIRE POLYMARKER COLOUR INDEX * ;*.PAGE * ;*.X POLYMARKER COLOUR INDEX * ;*.X GQPMCI * ;*.LIT * ;************************************************************************ ;* INQUIRE POLYMARKER COLOUR INDEX GKCL,GKOP,WSOP,WSAC,SGOP Lma * ;* Part of INQUIRE CURRENT INDIVIDUAL ATTRIBUTE VALUES * ;* * ;* FORTRAN calling sequence: * ;* SUBROUTINE GQPMCI (ERRIND, COLI) * ;* * ;* Output parameters: * ;* INTEGER ERRIND error indicator * ;* INTEGER COLI polymarker colour index * ;* * ;* Parameters: * ;* Out error indicator I * ;* Out current polymarker colour index (0..n) I * ;* * ;* Effect: If the inquired information is available, the error * ;* indicator is returned as 0 and the values are returned * ;* in the output parameters. * ;* * ;* If the inquired information is not available, the * ;* values returned in the output parameters are implement- * ;* ation dependent and the error indicator is set to one * ;* of the following error numbers to indicate the reason * ;* for non-availability: * ;* * ;* 8 GKS not in proper state: GKS shall be in one * ;* of the states GKOP, WSOP, WSAC or SGOP. * ;* * ;* References: * ;* 4.4.2 * ;* 4.11.2 * ;* * ;* Errors: * ;* none * ;************************************************************************ ;*.ELI * ;************************************************************************ ;- ;; .NLIST .INCLUDE /GOPSTA.INC/ .INCLUDE /GDESTB.INC/ .LIST .PSECT G$$COD,RW,I,LCL,REL,CON GQPMCI::CLR @2(R5) ; Clear the error indicator. TST G$OPST ; Is GKS in state GKOP, WSOP, WSAC or SGOP? BNE 10$ ; Branch if it is. MOV #8.,@2(R5) ; GKS not in proper state. 10$: MOV GS.PCI,@4(R5) ; Return the current polymarker colour index. RTS PC ; Return .END