home *** CD-ROM | disk | FTP | other *** search
/ C++ Games Programming / CPPGAMES.ISO / fgl / fglight / exc.arj / TEMP / 07-09.C < prev    next >
Text File  |  1995-01-20  |  594b  |  34 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.    fg_initpm();
  11.    old_mode = fg_getmode();
  12.    fg_setmode(16);
  13.  
  14.    fg_setcolor(14);
  15.    fg_text("yellow",6);
  16.  
  17.    fg_setcolor(10);
  18.    fg_text(" green",6);
  19.  
  20.    fg_setcolor(7);
  21.    minx = fg_xconvert(0);
  22.    maxx = fg_xconvert(16) - 1;
  23.    miny = fg_yconvert(24);
  24.    maxy = fg_yconvert(25) - 1;
  25.    fg_rect(minx,maxx,miny,maxy);
  26.    fg_setcolor(12);
  27.    fg_locate(24,0);
  28.    fg_text(" Press any key. ",16);
  29.    fg_waitkey();
  30.  
  31.    fg_setmode(old_mode);
  32.    fg_reset();
  33. }
  34.