# HG changeset patch # User Matti Hamalainen # Date 1290280911 -7200 # Node ID e1bfd5227a243e6620dd772d0daa02c02f106030 # Parent 6c5d136b6e6a39ae3677cbcaa094c72090a6124e Use curses subwin(stdscr, ...) instead of newwin(). diff -r 6c5d136b6e6a -r e1bfd5227a24 nnchat.c --- a/nnchat.c Sat Nov 20 21:15:53 2010 +0200 +++ b/nnchat.c Sat Nov 20 21:21:51 2010 +0200 @@ -747,9 +747,9 @@ closeWindows(); - mainWin = newwin(h - 4, w, 0, 0); - statusWin = newwin(1, w, h - 4, 0); - editWin = newwin(3, w, h - 3, 0); + mainWin = subwin(stdscr, h - 4, w, 0, 0); + statusWin = subwin(stdscr, 1, w, h - 4, 0); + editWin = subwin(stdscr, 3, w, h - 3, 0); if (mainWin == NULL || statusWin == NULL || editWin == NULL) { THERR("Could not create ncurses windows!\n");