Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/lib/libcurses/newwin.c,v rcsdiff: /ftp/cvs/cvsroot/src/lib/libcurses/newwin.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.12 retrieving revision 1.13 diff -u -p -r1.12 -r1.13 --- src/lib/libcurses/newwin.c 1999/06/23 03:26:02 1.12 +++ src/lib/libcurses/newwin.c 2000/04/11 13:57:10 1.13 @@ -1,4 +1,4 @@ -/* $NetBSD: newwin.c,v 1.12 1999/06/23 03:26:02 christos Exp $ */ +/* $NetBSD: newwin.c,v 1.13 2000/04/11 13:57:10 blymn Exp $ */ /* * Copyright (c) 1981, 1993, 1994 @@ -38,13 +38,14 @@ #if 0 static char sccsid[] = "@(#)newwin.c 8.3 (Berkeley) 7/27/94"; #else -__RCSID("$NetBSD: newwin.c,v 1.12 1999/06/23 03:26:02 christos Exp $"); +__RCSID("$NetBSD: newwin.c,v 1.13 2000/04/11 13:57:10 blymn Exp $"); #endif #endif /* not lint */ #include #include "curses.h" +#include "curses_private.h" #undef nl /* Don't need it here, and it interferes. */ @@ -222,8 +223,10 @@ __makenew(nl, nc, by, bx, sub) win->begy = by; win->begx = bx; win->flags = 0; + win->wattr = 0; __swflags(win); #ifdef DEBUG + __CTRACE("makenew: win->wattr = %0.2o\n", win->wattr); __CTRACE("makenew: win->flags = %0.2o\n", win->flags); __CTRACE("makenew: win->maxy = %d\n", win->maxy); __CTRACE("makenew: win->maxx = %d\n", win->maxx);