X-Git-Url: https://plomlompom.com/repos/index.html?a=blobdiff_plain;ds=sidebyside;f=windows.c;h=5d924e9327001d4127904b8cf9eac6dafa8cfafb;hb=ac4305d47335de070f5f940220d0e9d6be32fe49;hp=323d0c6aed13421e91227644e4f8537e8e39421d;hpb=4278fa073915777094328bc6575cdcc1f849f9f1;p=plomrogue
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;