Mercurial > hg > nnchat
changeset 376:1617d0a0c58e
Use getmaxy() instead of getmaxyx().
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 28 Jun 2011 21:46:18 +0300 |
parents | c300ed52886c |
children | 9ad157feb99a |
files | nnchat.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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);