home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0020 - 0029 / ibm0020-0029 / ibm0028.tar / ibm0028 / GRLF-C-2.ZIP / GFUNC / VMODE.C < prev    next >
Encoding:
C/C++ Source or Header  |  1990-05-30  |  606 b   |  36 lines

  1. /*
  2.  * vmode.c
  3.  * contains: vmode()
  4.  *
  5.  */
  6.  
  7. #include <stdio.h>
  8. #include "gfuncts.h"
  9.  
  10. /*
  11.  *  void
  12.  * vmode(mode)
  13.  *
  14.  * ARGUMENT
  15.  *  (int)    mode        -    new video mode to set
  16.  *
  17.  * DESCRIPTION
  18.  *  sets new video mode via rom-bios.  Also updates the global variables
  19.  *  gmaxcol,gmaxrow.
  20.  *
  21.  * AUTHOR
  22.  *  ""   09-APR-1987  15:28:31.30
  23.  *   Copyright (C)1987-1990 Greenleaf Software Inc. All Rights Reserved.
  24.  */
  25. void GF_CONV vmode(mode)
  26. int mode;
  27. {
  28.     unsigned colrow;
  29.     
  30.     colrow=_vmode(mode);
  31.     gmaxrow=(int)(colrow&0x00ff);
  32.     gmaxcol=(int)((colrow>>8)&0x00ff);
  33.     _gvmtrp=1;
  34.     return;
  35. }
  36.