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

  1.  
  2. /* function to draw a color box from an lower right corner position */
  3. grbxlrc(x,y,side,color)
  4. int x;         /* x coordinate of lower right corner of box */
  5. int y;         /* y coordinate of lower right corner of box */
  6. int side;     /* length of side of box */
  7. int color;     /* foreground color of line */
  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 - side + 1;
  16.     y1 = y - side + 1;
  17.     x2 = x;
  18.     y2 = y;
  19.  
  20. /* call box fill routine */
  21.     eg_rectangle(x1,y1,x2,y2,color,1,-1);
  22.     return(0);
  23. }
  24.