Lines Matching defs:win1
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);
64 __CTRACE(__CTRACE_WINDOW, "touchoverlap: win1 (%d,%d) to (%d,%d)\n",
65 win1->begy, win1->begx, win1->begy + win1->maxy,
66 win1->begx + win1->maxx);