Use _cursesi_screen->winlistp (depracating __winlist)

This commit is contained in:
dsl 2003-07-30 11:11:55 +00:00
parent 7996b95938
commit a04fc5a9fe
1 changed files with 4 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: resize.c,v 1.8 2003/06/26 17:17:10 dsl Exp $ */ /* $NetBSD: resize.c,v 1.9 2003/07/30 11:11:55 dsl Exp $ */
/* /*
* Copyright (c) 2001 * Copyright (c) 2001
@ -40,7 +40,7 @@
#if 0 #if 0
static char sccsid[] = "@(#)resize.c blymn 2001/08/26"; static char sccsid[] = "@(#)resize.c blymn 2001/08/26";
#else #else
__RCSID("$NetBSD: resize.c,v 1.8 2003/06/26 17:17:10 dsl Exp $"); __RCSID("$NetBSD: resize.c,v 1.9 2003/07/30 11:11:55 dsl Exp $");
#endif #endif
#endif /* not lint */ #endif /* not lint */
@ -49,8 +49,6 @@ __RCSID("$NetBSD: resize.c,v 1.8 2003/06/26 17:17:10 dsl Exp $");
#include "curses.h" #include "curses.h"
#include "curses_private.h" #include "curses_private.h"
extern struct __winlist *winlistp;
static int __resizewin(WINDOW *win, int nlines, int ncols); static int __resizewin(WINDOW *win, int nlines, int ncols);
/* /*
@ -121,7 +119,7 @@ resizeterm(int nlines, int ncols)
#endif #endif
for (list = __winlistp; list != NULL; list = list->nextp) { for (list = _cursesi_screen->winlistp; list != NULL; list = list->nextp) {
win = list->winp; win = list->winp;
newlines = win->reqy; newlines = win->reqy;
@ -144,7 +142,7 @@ resizeterm(int nlines, int ncols)
COLS = ncols; COLS = ncols;
/* tweak the flags now that we have updated the LINES and COLS */ /* tweak the flags now that we have updated the LINES and COLS */
for (list = __winlistp; list != NULL; list = list->nextp) { for (list = _cursesi_screen->winlistp; list != NULL; list = list->nextp) {
if (!(win->flags & __ISPAD)) if (!(win->flags & __ISPAD))
__swflags(list->winp); __swflags(list->winp);
} }