Lines Matching refs:win1
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);
54 y1 = starty - win1->_begy;
57 end = &win1->_y[y1][endx - win1->_begx];
59 for (sp = &win1->_y[y1][startx - win1->_begx]; sp < end; sp++) {