diff options
author | christos <christos@NetBSD.org> | 2012-10-06 19:39:51 +0000 |
---|---|---|
committer | christos <christos@NetBSD.org> | 2012-10-06 19:39:51 +0000 |
commit | 40545e6c420c8ff5c2a6f4df18634e16a715baf0 (patch) | |
tree | 4b2a12c717e9c50e539a98b84f4792fb7275a1aa /dab/main.cc | |
parent | bbb57b4a8f2ef35bf61fa83816c3ffc3bf23af73 (diff) | |
download | bsdgames-darwin-40545e6c420c8ff5c2a6f4df18634e16a715baf0.tar.gz bsdgames-darwin-40545e6c420c8ff5c2a6f4df18634e16a715baf0.tar.zst bsdgames-darwin-40545e6c420c8ff5c2a6f4df18634e16a715baf0.zip |
if 0 is used for the dimensions, compute the maximum size.
Diffstat (limited to 'dab/main.cc')
-rw-r--r-- | dab/main.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dab/main.cc b/dab/main.cc index 97d93eaa..49a8850b 100644 --- a/dab/main.cc +++ b/dab/main.cc @@ -1,4 +1,4 @@ -/* $NetBSD: main.cc,v 1.5 2008/04/28 20:22:54 martin Exp $ */ +/* $NetBSD: main.cc,v 1.6 2012/10/06 19:39:51 christos Exp $ */ /*- * Copyright (c) 2003 The NetBSD Foundation, Inc. @@ -33,7 +33,7 @@ * main.C: Main dots program */ #include "defs.h" -RCSID("$NetBSD: main.cc,v 1.5 2008/04/28 20:22:54 martin Exp $") +RCSID("$NetBSD: main.cc,v 1.6 2012/10/06 19:39:51 christos Exp $") #include <stdio.h> #include <unistd.h> @@ -168,7 +168,7 @@ int main(int argc, char** argv) } } - sc = TTYSCRN::create(acs, ny, nx); + sc = TTYSCRN::create(acs, &ny, &nx); if (sc == NULL) ::errx(1, "Dimensions too large for current screen."); |