Mercurial > hg > nnchat
comparison nnchat.c @ 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 |
comparison
equal
deleted
inserted
replaced
208:6c5d136b6e6a | 209:e1bfd5227a24 |
---|---|
745 | 745 |
746 getmaxyx(stdscr, h, w); | 746 getmaxyx(stdscr, h, w); |
747 | 747 |
748 closeWindows(); | 748 closeWindows(); |
749 | 749 |
750 mainWin = newwin(h - 4, w, 0, 0); | 750 mainWin = subwin(stdscr, h - 4, w, 0, 0); |
751 statusWin = newwin(1, w, h - 4, 0); | 751 statusWin = subwin(stdscr, 1, w, h - 4, 0); |
752 editWin = newwin(3, w, h - 3, 0); | 752 editWin = subwin(stdscr, 3, w, h - 3, 0); |
753 | 753 |
754 if (mainWin == NULL || statusWin == NULL || editWin == NULL) { | 754 if (mainWin == NULL || statusWin == NULL || editWin == NULL) { |
755 THERR("Could not create ncurses windows!\n"); | 755 THERR("Could not create ncurses windows!\n"); |
756 return FALSE; | 756 return FALSE; |
757 } | 757 } |