Lines Matching refs:win2
31 * This routine writes win1 on win2 non-destructively.
35 overlay(WINDOW *win1, WINDOW *win2)
42 fprintf(outf, "OVERLAY(%0.2o, %0.2o);\n", win1, win2);
44 starty = max(win1->_begy, win2->_begy);
45 startx = max(win1->_begx, win2->_begx);
46 endy = min(win1->_maxy + win1->_begy, win2->_maxy + win2->_begy);
47 endx = min(win1->_maxx + win1->_begx, win2->_maxx + win2->_begx);
55 y2 = starty - win2->_begy;
58 x = startx - win2->_begx;
61 (void) mvwaddch(win2, y2, x, *sp);