Mercurial > hg > nnchat
diff nnchat.c @ 376:1617d0a0c58e
Use getmaxy() instead of getmaxyx().
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 28 Jun 2011 21:46:18 +0300 |
parents | b9f0bdad6285 |
children | 7c28f38cb6dd |
line wrap: on
line diff
--- 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);