home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS 1992 September / Simtel20_Sept92.cdr / msdos / ega / cega.arc / GPRECT.C < prev    next >
Text File  |  1986-02-06  |  216b  |  19 lines

  1.  
  2. gprect(x2,y2)
  3.   int x2,y2;
  4. {
  5.   extern int gdcur_x, gdcur_y;
  6.  
  7.   int x1,y1;
  8.  
  9.   x1 = gdcur_x;
  10.   y1 = gdcur_y;
  11.  
  12.   gpmove(x1,y1);
  13.   gpline(x1,y2);
  14.   gpline(x2,y2);
  15.   gpline(x2,y1);
  16.   gpline(x1,y1);
  17.  
  18. }
  19.