diff options
| author | pgoyette <pgoyette@NetBSD.org> | 2014-07-13 16:23:55 +0000 |
|---|---|---|
| committer | pgoyette <pgoyette@NetBSD.org> | 2014-07-13 16:23:55 +0000 |
| commit | c1575446b4355046bd6cf7f905cab749762c5306 (patch) | |
| tree | ea23e632dcea07b44f53789c1b8572cab84fa207 /tetris/screen.c | |
| parent | d50718e53412f5ea2897755a7841ac38a58256f5 (diff) | |
| download | bsdgames-darwin-c1575446b4355046bd6cf7f905cab749762c5306.tar.gz bsdgames-darwin-c1575446b4355046bd6cf7f905cab749762c5306.zip | |
Provide an option to restore traditional black-and-white mode.
Diffstat (limited to 'tetris/screen.c')
| -rw-r--r-- | tetris/screen.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tetris/screen.c b/tetris/screen.c index 50a019d3..4d7911c6 100644 --- a/tetris/screen.c +++ b/tetris/screen.c @@ -1,4 +1,4 @@ -/* $NetBSD: screen.c,v 1.28 2014/06/11 16:47:39 christos Exp $ */ +/* $NetBSD: screen.c,v 1.29 2014/07/13 16:23:55 pgoyette Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -98,6 +98,8 @@ static void setcolor(int c) { char *buf; + if (nocolor == 1) + return; if (set_a_foreground == NULL) return; |
