home *** CD-ROM | disk | FTP | other *** search
/ C++ Games Programming / CPPGAMES.ISO / fgl / fglight / exc.arj / TEMP / 04-01.C < prev    next >
Text File  |  1995-01-20  |  374b  |  25 lines

  1. #include <fastgraf.h>
  2. #include <stdio.h>
  3.  
  4. void main(void);
  5.  
  6. void main()
  7. {
  8.    int max_col;
  9.    int max_row;
  10.    int mode;
  11.  
  12.    fg_initpm();
  13.    mode = fg_getmode();
  14.    fg_setmode(3);
  15.  
  16.    max_col = fg_getmaxx();
  17.    max_row = fg_getmaxy();
  18.  
  19.    fg_setmode(mode);
  20.    fg_reset();
  21.  
  22.    printf("Last col = %d\n",max_col);
  23.    printf("Last row = %d\n",max_row);
  24. }
  25.