home · contact · privacy
Forgot to use getmaxy/getmaxx on screen, too.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 1 May 2013 23:42:48 +0000 (01:42 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 1 May 2013 23:42:48 +0000 (01:42 +0200)
windows.c

index 323d0c6aed13421e91227644e4f8537e8e39421d..5d924e9327001d4127904b8cf9eac6dafa8cfafb 100644 (file)
--- 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;