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

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