date and time created 83/03/09 16:22:33 by ralph
authorRalph Campbell <ralph@ucbvax.Berkeley.EDU>
Thu, 10 Mar 1983 08:22:33 +0000 (00:22 -0800)
committerRalph Campbell <ralph@ucbvax.Berkeley.EDU>
Thu, 10 Mar 1983 08:22:33 +0000 (00:22 -0800)
SCCS-vsn: old/lib2648/drawbox.c 4.1

usr/src/old/lib2648/drawbox.c [new file with mode: 0644]

diff --git a/usr/src/old/lib2648/drawbox.c b/usr/src/old/lib2648/drawbox.c
new file mode 100644 (file)
index 0000000..2cadb5e
--- /dev/null
@@ -0,0 +1,22 @@
+/*     drawbox.c       4.1     83/03/09        */
+/*
+ * Draw a box around a window.  The lower left corner of the box is at (r, c).
+ * Color is 1 for drawing a box, 0 for erasing.
+ * The box is nrow by ncol.
+ */
+
+#include "2648.h"
+
+drawbox(r, c, color, nrow, ncol)
+int r, c, color, nrow, ncol;
+{
+       if (color)
+               setset();
+       else
+               setclear();
+       move(c, r);
+       draw(c+ncol-1, r);
+       draw(c+ncol-1, r+nrow-1);
+       draw(c, r+nrow-1);
+       draw(c, r);
+}