From 10c3f324b1d39ec1099a23461fd8f371ae0479c9 Mon Sep 17 00:00:00 2001 From: nat Date: Thu, 3 Mar 2016 21:38:55 +0000 Subject: Center game board on screen. OK from christos@. --- tetris/tetris.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tetris/tetris.c') 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; -- cgit v1.2.3