summaryrefslogtreecommitdiffstats
path: root/contrib/ncurses/ncurses/base/lib_window.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ncurses/ncurses/base/lib_window.c')
-rw-r--r--contrib/ncurses/ncurses/base/lib_window.c19
1 files changed, 14 insertions, 5 deletions
diff --git a/contrib/ncurses/ncurses/base/lib_window.c b/contrib/ncurses/ncurses/base/lib_window.c
index 9cef79c..943f6e0 100644
--- a/contrib/ncurses/ncurses/base/lib_window.c
+++ b/contrib/ncurses/ncurses/base/lib_window.c
@@ -1,5 +1,5 @@
/****************************************************************************
- * Copyright (c) 1998,2000 Free Software Foundation, Inc. *
+ * Copyright (c) 1998,2000,2001 Free Software Foundation, Inc. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
* copy of this software and associated documentation files (the *
@@ -39,7 +39,7 @@
#include <curses.priv.h>
-MODULE_ID("$Id: lib_window.c,v 1.15 2000/12/10 02:43:28 tom Exp $")
+MODULE_ID("$Id: lib_window.c,v 1.18 2001/12/19 01:07:15 tom Exp $")
NCURSES_EXPORT(void)
_nc_synchook(WINDOW *win)
@@ -98,7 +98,8 @@ wsyncup(WINDOW *win)
{
WINDOW *wp;
- if (win && win->_parent)
+ T((T_CALLED("wsyncup(%p)"), win));
+ if (win && win->_parent) {
for (wp = win; wp->_parent; wp = wp->_parent) {
int y;
WINDOW *pp = wp->_parent;
@@ -118,6 +119,8 @@ wsyncup(WINDOW *win)
}
}
}
+ }
+ returnVoid;
}
NCURSES_EXPORT(void)
@@ -125,6 +128,8 @@ wsyncdown(WINDOW *win)
/* mark changed every cell in win that is changed in any of its ancestors */
/* Rewritten by J. Pfeifer, 1-Apr-96 (don't even think that...) */
{
+ T((T_CALLED("wsyncdown(%p)"), win));
+
if (win && win->_parent) {
WINDOW *pp = win->_parent;
int y;
@@ -153,6 +158,7 @@ wsyncdown(WINDOW *win)
}
}
}
+ returnVoid;
}
NCURSES_EXPORT(void)
@@ -160,9 +166,12 @@ wcursyncup(WINDOW *win)
/* sync the cursor in all derived windows to its value in the base window */
{
WINDOW *wp;
+
+ T((T_CALLED("wcursyncup(%p)"), win));
for (wp = win; wp && wp->_parent; wp = wp->_parent) {
wmove(wp->_parent, wp->_pary + wp->_cury, wp->_parx + wp->_curx);
}
+ returnVoid;
}
NCURSES_EXPORT(WINDOW *)
@@ -177,7 +186,7 @@ dupwin(WINDOW *win)
if ((win == NULL) ||
((nwin = newwin(win->_maxy + 1, win->_maxx + 1, win->_begy,
- win->_begx)) == NULL))
+ win->_begx)) == NULL))
returnWin(0);
nwin->_curx = win->_curx;
@@ -194,7 +203,7 @@ dupwin(WINDOW *win)
*/
nwin->_attrs = win->_attrs;
- nwin->_bkgd = win->_bkgd;
+ nwin->_nc_bkgd = win->_nc_bkgd;
nwin->_clear = win->_clear;
nwin->_scroll = win->_scroll;
OpenPOWER on IntegriCloud