version 1.17, 2007/11/08 06:34:34 |
version 1.18, 2008/04/14 20:33:41 |
Line 69 wresize(WINDOW *win, int req_nlines, int |
|
Line 69 wresize(WINDOW *win, int req_nlines, int |
|
__CTRACE(__CTRACE_WINDOW, "wresize: (%p, %d, %d)\n", |
__CTRACE(__CTRACE_WINDOW, "wresize: (%p, %d, %d)\n", |
win, nlines, ncols); |
win, nlines, ncols); |
#endif |
#endif |
nlines = req_nlines; |
|
ncols = req_ncols; |
|
if (win->orig == NULL) { |
if (win->orig == NULL) { |
/* bound "our" windows by the screen size */ |
/* bound "our" windows by the screen size */ |
if (win == curscr || win == __virtscr || win == stdscr) { |
if (win == curscr || win == __virtscr || win == stdscr) { |
Line 147 resizeterm(int nlines, int ncols) |
|
Line 145 resizeterm(int nlines, int ncols) |
|
WINDOW *win; |
WINDOW *win; |
struct __winlist *list; |
struct __winlist *list; |
|
|
/* don't worry if things have not changed... we would like to |
|
do this but some bastard programs update LINES and COLS before |
|
calling resizeterm thus negating it's effect. |
|
if ((nlines == LINES) && (ncols == COLS)) |
|
return OK;*/ |
|
|
|
#ifdef DEBUG |
#ifdef DEBUG |
__CTRACE(__CTRACE_WINDOW, "resizeterm: (%d, %d)\n", nlines, ncols); |
__CTRACE(__CTRACE_WINDOW, "resizeterm: (%d, %d)\n", nlines, ncols); |
#endif |
#endif |
Line 302 __resizewin(WINDOW *win, int nlines, int |
|
Line 294 __resizewin(WINDOW *win, int nlines, int |
|
win->cury = win->curx = 0; |
win->cury = win->curx = 0; |
win->maxy = nlines; |
win->maxy = nlines; |
win->maxx = ncols; |
win->maxx = ncols; |
win->scr_b = win->maxy - 1; |
if (win->scr_b >= win->maxy) |
|
win->scr_b = win->maxy - 1; |
__swflags(win); |
__swflags(win); |
|
|
/* |
/* |