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

  1. #include <fastgraf.h>
  2.  
  3. void main(void);
  4.  
  5. void main()
  6. {
  7.    int old_mode;
  8.  
  9.    fg_initpm();
  10.    old_mode = fg_getmode();
  11.    fg_setmode(19);
  12.    fg_setcolor(9);
  13.    fg_rect(0,159,0,199);
  14.    fg_setcolor(15);
  15.    fg_rect(160,319,0,199);
  16.    fg_waitkey();
  17.  
  18.    fg_boxx(80,239,50,149);
  19.    fg_waitkey();
  20.    fg_boxx(80,239,50,149);
  21.    fg_waitkey();
  22.  
  23.    fg_setmode(old_mode);
  24.    fg_reset();
  25. }
  26.