*/
#ifndef lint
-static char sccsid[] = "@(#)overwrite.c 5.7 (Berkeley) %G%";
+static char sccsid[] = "@(#)overwrite.c 5.14 (Berkeley) %G%";
#endif /* not lint */
#include <ctype.h>
register int x, y, endy, endx, starty, startx;
#ifdef DEBUG
- __TRACE("overwrite: (%0.2o, %0.2o);\n", win1, win2);
+ __CTRACE("overwrite: (%0.2o, %0.2o);\n", win1, win2);
#endif
starty = max(win1->begy, win2->begy);
startx = max(win1->begx, win2->begx);
if (starty >= endy || startx >= endx)
return (OK);
#ifdef DEBUG
- __TRACE("overwrite: from (%d, %d) to (%d, %d)\n",
+ __CTRACE("overwrite: from (%d, %d) to (%d, %d)\n",
starty, startx, endy, endx);
#endif
x = endx - startx;
for (y = starty; y < endy; y++) {
- bcopy(&win1->lines[y - win1->begy]->line[startx - win1->begx],
+ (void)memcpy(
&win2->lines[y - win2->begy]->line[startx - win2->begx],
- x);
- touchline(win2, y, startx - win2->begx, endx - win2->begx);
+ &win1->lines[y - win1->begy]->line[startx - win1->begx],
+ x * __LDATASIZE);
+ __touchline(win2, y, startx - win2->begx, endx - win2->begx,
+ 0);
}
return (OK);
}