From 2a748a9251600e3fed650bebd4f8af4e32f50447 Mon Sep 17 00:00:00 2001 From: simonb Date: Sun, 18 Apr 1999 03:29:01 +0000 Subject: Don't frob the interals of a WINDOW*, use the mvinch() macro. --- hunt/hunt/otto.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/hunt/hunt/otto.c b/hunt/hunt/otto.c index 773ceb7e..581efaa3 100644 --- a/hunt/hunt/otto.c +++ b/hunt/hunt/otto.c @@ -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 #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 @@ -41,11 +41,7 @@ __RCSID("$NetBSD: otto.c,v 1.2 1997/10/10 16:32:39 lukem Exp $"); 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 -- cgit v1.2.3