From: Christian Heller Date: Wed, 1 May 2013 23:42:48 +0000 (+0200) Subject: Forgot to use getmaxy/getmaxx on screen, too. X-Git-Tag: tce~1325 X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/%7B%7B%20web_path%20%7D%7D/%7B%7Bdb.prefix%7D%7D/todo?a=commitdiff_plain;h=ac4305d47335de070f5f940220d0e9d6be32fe49;p=plomrogue Forgot to use getmaxy/getmaxx on screen, too. --- diff --git a/windows.c b/windows.c index 323d0c6..5d924e9 100644 --- a/windows.c +++ b/windows.c @@ -7,8 +7,8 @@ struct WinMeta init_win_meta (WINDOW * screen) { // Create and populate WinMeta struct with sane default values. struct WinMeta win_meta; win_meta.screen = screen; - win_meta.height = screen->_maxy + 1; - win_meta.width = screen->_maxx + 1; + win_meta.height = getmaxy(screen); + win_meta.width = getmaxx(screen); win_meta.chain_start = 0; win_meta.chain_end = 0; win_meta.pad_offset = 0;