summaryrefslogtreecommitdiffstats
path: root/tetris/tetris.c
diff options
context:
space:
mode:
authornat <nat@NetBSD.org>2016-03-03 21:38:55 +0000
committernat <nat@NetBSD.org>2016-03-03 21:38:55 +0000
commit10c3f324b1d39ec1099a23461fd8f371ae0479c9 (patch)
tree774fb1891dc35a63552d9e7ea147eb10dd8a97cb /tetris/tetris.c
parent2e99c67a1bfa5c84c7c49617cae913cdb506459b (diff)
downloadbsdgames-darwin-10c3f324b1d39ec1099a23461fd8f371ae0479c9.tar.gz
bsdgames-darwin-10c3f324b1d39ec1099a23461fd8f371ae0479c9.tar.zst
bsdgames-darwin-10c3f324b1d39ec1099a23461fd8f371ae0479c9.zip
Center game board on screen. OK from christos@.
Diffstat (limited to 'tetris/tetris.c')
-rw-r--r--tetris/tetris.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tetris/tetris.c b/tetris/tetris.c
index 1f5f68b4..5a41c158 100644
--- a/tetris/tetris.c
+++ b/tetris/tetris.c
@@ -1,4 +1,4 @@
-/* $NetBSD: tetris.c,v 1.31 2015/11/06 19:53:37 christos Exp $ */
+/* $NetBSD: tetris.c,v 1.32 2016/03/03 21:38:55 nat Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -62,6 +62,7 @@ __COPYRIGHT("@(#) Copyright (c) 1992, 1993\
cell board[B_SIZE]; /* 1 => occupied, 0 => empty */
int Rows, Cols; /* current screen size */
+int Offset; /* used to center board & shapes */
static const struct shape *curshape;
const struct shape *nextshape;