Lines Matching refs:win2
30 * Touch, on win2, the part that overlaps with win1.
34 touchoverlap(WINDOW *win1, WINDOW *win2)
39 fprintf(outf, "TOUCHOVERLAP(%0.2o, %0.2o);\n", win1, win2);
41 starty = max(win1->_begy, win2->_begy);
42 startx = max(win1->_begx, win2->_begx);
43 endy = min(win1->_maxy + win1->_begy, win2->_maxy + win2->_begy);
44 endx = min(win1->_maxx + win1->_begx, win2->_maxx + win2->_begx);
51 fprintf(outf, "TOUCHOVERLAP:win2 (%d,%d) to (%d,%d)\n",
52 win2->_begy, win2->_begx, win2->_begy + win2->_maxy,
53 win2->_begx + win2->_maxx);
57 starty -= win2->_begy;
58 startx -= win2->_begx;
59 endy -= win2->_begy;
60 endx -= win2->_begx;
63 (void) touchline(win2, y, startx, endx);