Lines Matching refs:win1
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);
48 fprintf(outf, "TOUCHOVERLAP:win1 (%d,%d) to (%d,%d)\n",
49 win1->_begy, win1->_begx, win1->_begy + win1->_maxy,
50 win1->_begx + win1->_maxx);