Merge from vendor branch TNF:
[pkgsrcv2.git] / net / nocol / patches / patch-aa
1 $NetBSD$
2
3 --- netconsole/build_display.c.orig     Thu Jul 13 11:13:37 2000
4 +++ netconsole/build_display.c  Thu Jul 13 11:15:26 2000
5 @@ -59,7 +59,7 @@
6  #include       "netconsole.h"
7  
8  
9 -#define WFULL(w)       (w->_cury == (w->_maxy - 1)) ? 1:0
10 +#define WFULL(w)       (getcury(w) == (getmaxy(w) - 1)) ? 1:0
11  
12  build_display ()
13  {
14 @@ -238,8 +238,8 @@
15       * Am calling touchwin() since its foolproof (see discussion above)
16       */
17      touchwin (aw.wmain);
18 -    y = aw.wprompt->_cury + aw.wprompt->_begy ;        /* force cursor loc..   */
19 -    x = aw.wprompt->_curx + aw.wprompt->_begx ;        /* ..to prompt window */
20 +    y = getcury(aw.wprompt) + getbegy(aw.wprompt);  /* force cursor loc.. */
21 +    x = getcurx(aw.wprompt) + getbegx(aw.wprompt);  /* ..to prompt window */
22      wmove(aw.wmain, y, x);
23      wrefresh (aw.wmain);                       /* Onto screen */
24      return (0) ;