home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 12 / CD_ASCQ_12_0294.iso / maj / 4401 / exc.arj / FGDOC / EXAMPLES / C / 09-07.C < prev    next >
Text File  |  1994-01-24  |  478b  |  27 lines

  1. #include <fastgraf.h>
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4.  
  5. void main(void);
  6.  
  7. char far buffer[20000];
  8.  
  9. void main()
  10. {
  11.    int old_mode;
  12.  
  13.    if (fg_testmode(19,1) == 0) {
  14.       printf("This program requires a 320 ");
  15.       printf("x 200 MCGA graphics mode.\n");
  16.       exit(1);
  17.       }
  18.    old_mode = fg_getmode();
  19.    fg_setmode(19);
  20.    fg_imagebuf(buffer,20000);
  21.    fg_showpcx("CORAL.PCX",0);
  22.    fg_waitkey();
  23.  
  24.    fg_setmode(old_mode);
  25.    fg_reset();
  26. }
  27.