Lines Matching defs:win2
46 * Touch, on win2, the part that overlaps with win1.
49 touchoverlap(WINDOW *win1, WINDOW *win2)
53 __CTRACE(__CTRACE_WINDOW, "touchoverlap: (%p, %p);\n", win1, win2);
55 if (__predict_false(win1 == NULL) || __predict_false(win2 == NULL))
58 starty = max(win1->begy, win2->begy);
59 startx = max(win1->begx, win2->begx);
60 endy = min(win1->maxy + win1->begy, win2->maxy + win2->begy);
61 endx = min(win1->maxx + win1->begx, win2->maxx + win2->begx);
67 __CTRACE(__CTRACE_WINDOW, "touchoverlap: win2 (%d,%d) to (%d,%d)\n",
68 win2->begy, win2->begx, win2->begy + win2->maxy,
69 win2->begx + win2->maxx);
72 starty -= win2->begy;
73 startx -= win2->begx;
74 endy -= win2->begy;
75 endx -= win2->begx;
77 __touchline(win2, y, startx, endx);