|
|
1.1 ! root 1: /* drawbox.c 4.1 83/03/09 */ ! 2: /* ! 3: * Draw a box around a window. The lower left corner of the box is at (r, c). ! 4: * Color is 1 for drawing a box, 0 for erasing. ! 5: * The box is nrow by ncol. ! 6: */ ! 7: ! 8: #include "2648.h" ! 9: ! 10: drawbox(r, c, color, nrow, ncol) ! 11: int r, c, color, nrow, ncol; ! 12: { ! 13: if (color) ! 14: setset(); ! 15: else ! 16: setclear(); ! 17: move(c, r); ! 18: draw(c+ncol-1, r); ! 19: draw(c+ncol-1, r+nrow-1); ! 20: draw(c, r+nrow-1); ! 21: draw(c, r); ! 22: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.