home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / PROGRAMM / FGL112C.ZIP / 06-06.C < prev    next >
Text File  |  1992-10-05  |  519b  |  30 lines

  1. #include <fastgraf.h>
  2.  
  3. void main(void);
  4.  
  5. void main()
  6. {
  7.    int max_x, max_y;
  8.    int mid_x, mid_y;
  9.    int new_mode, old_mode;
  10.  
  11.    old_mode = fg_getmode();
  12.    new_mode = fg_automode();
  13.    fg_setmode(new_mode);
  14.  
  15.    max_x = fg_getmaxx();
  16.    max_y = fg_getmaxy();
  17.    mid_x = max_x / 2;
  18.    mid_y = max_y / 2;
  19.  
  20.    fg_setcolor(15);
  21.    fg_move(mid_x,0);
  22.    fg_dash(mid_x,max_y,0x3333);
  23.    fg_move(0,mid_y);
  24.    fg_dash(max_x,mid_y,0x3333);
  25.    fg_waitkey();
  26.  
  27.    fg_setmode(old_mode);
  28.    fg_reset();
  29. }
  30.