home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Graphics / graphics-16000.iso / msdos / animutil / fastgfx / fg110c / 09-07.c < prev    next >
Text File  |  1992-01-30  |  507b  |  33 lines

  1. #include <fastgraf.h>
  2.  
  3. void main(void);
  4.  
  5. char hello[] = {
  6.    't',1, 'h',2, 'e',3, 'r',4, 'e',5,
  7.    'h',1, 'e',2, 'l',3, 'l',4, 'o',5
  8.    };
  9.  
  10. char image[] = {
  11.    'T',0, 0,1, 0,1, 0,1, 0,1,
  12.    'H',0, 0,1, 0,1, 0,1, 0,1
  13.    };
  14.  
  15. void main()
  16. {
  17.    int old_mode;
  18.  
  19.    old_mode = fg_getmode();
  20.    fg_setmode(3);
  21.    fg_cursor(0);
  22.  
  23.    fg_locate(12,37);
  24.    fg_drwimage(hello,10,2);
  25.    fg_waitkey();
  26.  
  27.    fg_drwimage(image,10,2);
  28.    fg_waitkey();
  29.  
  30.    fg_setmode(old_mode);
  31.    fg_reset();
  32. }
  33.