summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorPaul Janzen <pjanzen@cvs.openbsd.org>1998-03-26 20:51:23 +0000
committerPaul Janzen <pjanzen@cvs.openbsd.org>1998-03-26 20:51:23 +0000
commit1125c05855354a1bfc0a48b93534b0e3483c0f57 (patch)
tree88f045f6ae7d8603c008f980dd3d84fc3146b3f8 /games
parent5e8261f70ae8b155fad985e5dddc6ed3d4f940db (diff)
Quit rather than crashing if screen is too small
Diffstat (limited to 'games')
-rw-r--r--games/mille/mille.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/games/mille/mille.c b/games/mille/mille.c
index b8c15c5c7fd..a72197a5cd9 100644
--- a/games/mille/mille.c
+++ b/games/mille/mille.c
@@ -88,6 +88,11 @@ register char *av[]; {
}
Play = PLAYER;
initscr();
+ if ((LINES < 24) || (COLS < 80)) {
+ endwin();
+ fprintf(stderr, "Screen must be at least 24x80\n");
+ exit(1);
+ }
delwin(stdscr);
stdscr = Board = newwin(BOARD_Y, BOARD_X, 0, 0);
Score = newwin(SCORE_Y, SCORE_X, 0, 40);