Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/games/hunt/hunt Don't frob the interals of a WINDOW*, use th...



details:   https://anonhg.NetBSD.org/src/rev/06a381d80279
branches:  trunk
changeset: 472014:06a381d80279
user:      simonb <simonb%NetBSD.org@localhost>
date:      Sun Apr 18 03:29:01 1999 +0000

description:
Don't frob the interals of a WINDOW*, use the mvinch() macro.

diffstat:

 games/hunt/hunt/otto.c |  10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)

diffs (31 lines):

diff -r af5d5a9b51d1 -r 06a381d80279 games/hunt/hunt/otto.c
--- a/games/hunt/hunt/otto.c    Sun Apr 18 02:27:53 1999 +0000
+++ b/games/hunt/hunt/otto.c    Sun Apr 18 03:29:01 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: otto.c,v 1.2 1997/10/10 16:32:39 lukem Exp $   */
+/*     $NetBSD: otto.c,v 1.3 1999/04/18 03:29:01 simonb Exp $  */
 # ifdef OTTO
 /*
  *     otto    - a hunt otto-matic player
@@ -12,7 +12,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: otto.c,v 1.2 1997/10/10 16:32:39 lukem Exp $");
+__RCSID("$NetBSD: otto.c,v 1.3 1999/04/18 03:29:01 simonb Exp $");
 #endif /* not lint */
 
 # include      <sys/time.h>
@@ -41,11 +41,7 @@
 extern char    screen[SCREEN_HEIGHT][SCREEN_WIDTH2];
 # define       SCREEN(y, x)    screen[y][x]
 # else
-# if defined(BSD_RELEASE) && BSD_RELEASE >= 44
-# define       SCREEN(y, x)    stdscr->lines[y]->line[x].ch
-# else
-# define       SCREEN(y, x)    stdscr->_y[y][x]
-# endif
+# define       SCREEN(y, x)    mvinch(y, x)
 # endif
 
 # ifndef DEBUG



Home | Main Index | Thread Index | Old Index