changeset 209:e1bfd5227a24

Use curses subwin(stdscr, ...) instead of newwin().
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 20 Nov 2010 21:21:51 +0200
parents 6c5d136b6e6a
children 4554f9abc686
files nnchat.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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");