home *** CD-ROM | disk | FTP | other *** search
/ Power CD-ROM!! 7 / POWERCD7.ISO / prgmming / clipper / videomod.prg < prev    next >
Text File  |  1993-10-14  |  2KB  |  82 lines

  1. /*
  2.  * File......: VIDEOMOD.PRG
  3.  * Author....: Martin Colloby
  4.  * BBS.......: The Dark Knight Returns
  5.  * Net/Node..: 050/069
  6.  * User Name.: Martin Colloby
  7.  * Date......: 18/4/93
  8.  * Revision..: 1.0
  9.  *
  10.  * This is an original work by Martin Colloby and is placed in the public
  11.  * domain.
  12.  *
  13.  * Modification history:
  14.  * ---------------------
  15.  *
  16.  * $Log$
  17.  *
  18.  */
  19.  
  20.  
  21. /*  $DOC$
  22.  *  $FUNCNAME$
  23.  *      GT_VIDEOMODE()
  24.  *  $CATEGORY$
  25.  *      Video
  26.  *  $ONELINER$
  27.  *      Set the video mode
  28.  *  $SYNTAX$
  29.  *      GT_VideoMode( nRows , nCols )
  30.  *  $ARGUMENTS$
  31.  *      nRows - Number of screen rows
  32.  *      nCols - Number of screen cols
  33.  *  $RETURNS$
  34.  *      .T. if successful
  35.  *      .F. if failed
  36.  *  $DESCRIPTION$
  37.  *      The video mode is set to nRows * nCols.  If this fails, the mode should
  38.  *      not change.
  39.  *
  40.  *      The following constants are currently available :
  41.  *
  42.  *      Rows                Columns
  43.  *      V_EGA       43      V_SINGLE    80
  44.  *      V_VGA       50      V_DOUBLE    40
  45.  *      V_NORMAL    25      V_NOCHANGE  0
  46.  *
  47.  *  $EXAMPLES$
  48.  *
  49.  *  $SEEALSO$
  50.  *
  51.  *  $INCLUDE$
  52.  *
  53.  *  $END$
  54.  */
  55.  
  56. *
  57. FUNCTION GT_VideoMode( nRows , nCols )
  58.  
  59. /*****************************************************************************
  60.  Purpose - Set the video mode
  61.  Returns - .T. if completed succesfully
  62.  Author  - Log
  63.  Created - 11/12/92
  64. ******************************************************************************
  65.  Parameters - nRows - Number of rows
  66.               nCols - Number of cols
  67.  Privates   - None
  68.  Locals     - None
  69.  Externals  - None
  70. *****************************************************************************/
  71.  
  72. IF !SETMODE( nRows , nCols )
  73.     GT_Warning( { "Could not change screen mode to " + STR( nRows , 2 ) + ;
  74.                                               " by " + STR( nCols , 2 ) } )
  75.     RETURN( .F. )
  76. ELSE
  77.     RETURN( .T. )
  78. ENDIF
  79.  
  80. RETURN NIL
  81. *
  82.