Lines Matching defs:orig
49 static WINDOW *__subwin(WINDOW *orig, int nlines, int ncols, int by, int bx,
55 * are relative to the origin of window orig instead of absolute.
58 derwin(WINDOW *orig, int nlines, int ncols, int by, int bx)
61 return __subwin(orig, nlines, ncols, orig->begy + by, orig->begx + bx,
68 * are relative to the origin of window orig instead of absolute.
71 subpad(WINDOW *orig, int nlines, int ncols, int by, int bx)
74 return __subwin(orig, nlines, ncols, orig->begy + by, orig->begx + bx,
158 win->orig = NULL;
185 subwin(WINDOW *orig, int nlines, int ncols, int by, int bx)
188 return __subwin(orig, nlines, ncols, by, bx, FALSE);
192 __subwin(WINDOW *orig, int nlines, int ncols, int by, int bx, int ispad)
200 orig, nlines, ncols, by, bx, ispad);
202 if (__predict_false(orig == NULL))
206 maxy = nlines > 0 ? nlines : orig->maxy + orig->begy - by + nlines;
207 maxx = ncols > 0 ? ncols : orig->maxx + orig->begx - bx + ncols;
208 if (by < orig->begy || bx < orig->begx
209 || by + maxy > orig->maxy + orig->begy
210 || bx + maxx > orig->maxx + orig->begx)
215 win->bch = orig->bch;
216 win->battr = orig->battr;
219 win->nextp = orig->nextp;
220 orig->nextp = win;
221 win->orig = orig;
226 __set_subwin(orig, win);
233 __set_subwin(WINDOW *orig, WINDOW *win)
238 win->ch_off = win->begx - orig->begx;
242 olp = orig->alines[i + win->begy - orig->begy];