diff options
Diffstat (limited to 'tetris')
-rw-r--r-- | tetris/screen.c | 4 | ||||
-rw-r--r-- | tetris/tetris.c | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/tetris/screen.c b/tetris/screen.c index 1babdb49..62d50a2d 100644 --- a/tetris/screen.c +++ b/tetris/screen.c @@ -1,4 +1,4 @@ -/* $NetBSD: screen.c,v 1.30 2015/07/07 22:53:25 nat Exp $ */ +/* $NetBSD: screen.c,v 1.31 2015/11/06 19:53:37 christos Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -330,8 +330,8 @@ scr_update(void) putstr("Next shape:"); /* draw */ - putpad(enter_standout_mode); setcolor(nextshape->color); + putpad(enter_standout_mode); moveto(r, 2*c); putstr(" "); for(i=0; i<3; i++) { diff --git a/tetris/tetris.c b/tetris/tetris.c index 57ff4e5c..1f5f68b4 100644 --- a/tetris/tetris.c +++ b/tetris/tetris.c @@ -1,4 +1,4 @@ -/* $NetBSD: tetris.c,v 1.30 2015/06/13 04:53:13 dholland Exp $ */ +/* $NetBSD: tetris.c,v 1.31 2015/11/06 19:53:37 christos Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -116,6 +116,8 @@ elide(void) tsleep(); while (--base != 0) board[base + B_COLS] = board[base]; + /* don't forget to clear 0th row */ + memset(&board[1], 0, B_COLS - 2); scr_update(); tsleep(); break; |