# HG changeset patch # User Matti Hamalainen # Date 1309286778 -10800 # Node ID 1617d0a0c58e853828c37111360b20a75a362942 # Parent c300ed52886cec5de154ab80e627d5843c6719b9 Use getmaxy() instead of getmaxyx(). diff -r c300ed52886c -r 1617d0a0c58e nnchat.c --- a/nnchat.c Thu Jun 23 18:06:15 2011 +0300 +++ b/nnchat.c Tue Jun 28 21:46:18 2011 +0300 @@ -423,7 +423,7 @@ BOOL updateMainWin(BOOL force) { - int w, h, offs; + int h, offs; qringbuf_t *buf; /* Check pointers */ @@ -436,7 +436,7 @@ /* Compute how many lines from backbuffer fit on the screen */ buf = currWin->data; - getmaxyx(mainWin, h, w); + h = getmaxy(mainWin); /* Clear and redraw window */ werase(mainWin);