summaryrefslogtreecommitdiffstats
path: root/tetris/tetris.h
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.h
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.h')
-rw-r--r--tetris/tetris.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tetris/tetris.h b/tetris/tetris.h
index 559ef761..7d18a2d1 100644
--- a/tetris/tetris.h
+++ b/tetris/tetris.h
@@ -1,4 +1,4 @@
-/* $NetBSD: tetris.h,v 1.14 2014/07/13 16:23:55 pgoyette Exp $ */
+/* $NetBSD: tetris.h,v 1.15 2016/03/03 21:38:55 nat Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -73,6 +73,7 @@ extern cell board[B_SIZE]; /* 1 => occupied, 0 => empty */
#define MINCOLS 40
extern int Rows, Cols; /* current screen size */
+extern int Offset; /* vert. offset to center board */
/*
* Translations from board coordinates to display coordinates.