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

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