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

  1. #include <fastgraf.h>
  2.  
  3. void main(void);
  4.  
  5. void main()
  6. {
  7.    int old_mode;
  8.    int minx, maxx, miny, maxy;
  9.  
  10.    old_mode = fg_getmode();
  11.    fg_setmode(16);
  12.  
  13.    fg_setcolor(14);
  14.    fg_text("yellow",6);
  15.  
  16.    fg_setcolor(10);
  17.    fg_text(" green",6);
  18.  
  19.    fg_setcolor(7);
  20.    minx = fg_xconvert(0);
  21.    maxx = fg_xconvert(16) - 1;
  22.    miny = fg_yconvert(24);
  23.    maxy = fg_yconvert(25) - 1;
  24.    fg_rect(minx,maxx,miny,maxy);
  25.    fg_setcolor(12);
  26.    fg_locate(24,0);
  27.    fg_text(" Press any key. ",16);
  28.    fg_waitkey();
  29.  
  30.    fg_setmode(old_mode);
  31.    fg_reset();
  32. }
  33.