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

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