home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 11 / 11.iso / m / m242 / 2.ddi / VER2FUNC.ZIP / GRRTURC.C < prev    next >
Encoding:
Text File  |  1989-10-16  |  648 b   |  24 lines

  1. /* function to draw a color rectangle from an upper right corner position */
  2. grrturc(x,y,w,l,color)
  3. int x; /* x coordinate of upper right position */
  4. int y; /* y coordinate of upper right position */
  5. int w; /* width of rectangle */
  6. int l; /* length of rectangle */
  7. int color; /* color of rectangle */
  8. {
  9.     int x1; /* x coordinate of upper left */
  10.     int y1; /* y coordinate of upper left */
  11.     int x2; /* x coordinate of lower right */
  12.     int y2; /* y coordinate of lower right */
  13.  
  14. /* set points */
  15.     x1 = x - w + 1;
  16.     y1 = y;
  17.     x2 = x;
  18.     y2 = y + l -1;
  19.  
  20. /* call box fill routine */
  21.     eg_rectangle(x1,y1,x2,y2,color,1,-1);
  22.     return(0);
  23. }
  24.