diff options
author | Paul Janzen <pjanzen@cvs.openbsd.org> | 1998-03-26 20:51:23 +0000 |
---|---|---|
committer | Paul Janzen <pjanzen@cvs.openbsd.org> | 1998-03-26 20:51:23 +0000 |
commit | 1125c05855354a1bfc0a48b93534b0e3483c0f57 (patch) | |
tree | 88f045f6ae7d8603c008f980dd3d84fc3146b3f8 /games | |
parent | 5e8261f70ae8b155fad985e5dddc6ed3d4f940db (diff) |
Quit rather than crashing if screen is too small
Diffstat (limited to 'games')
-rw-r--r-- | games/mille/mille.c | 5 |
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); |