summaryrefslogtreecommitdiff
path: root/lib/libcurses/lib_refresh.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libcurses/lib_refresh.c')
-rw-r--r--lib/libcurses/lib_refresh.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/lib/libcurses/lib_refresh.c b/lib/libcurses/lib_refresh.c
index d2d3c1e008d..65c32f7d7e9 100644
--- a/lib/libcurses/lib_refresh.c
+++ b/lib/libcurses/lib_refresh.c
@@ -1,3 +1,5 @@
+/* $OpenBSD: lib_refresh.c,v 1.3 1997/12/03 05:21:28 millert Exp $ */
+
/***************************************************************************
* COPYRIGHT NOTICE *
@@ -24,21 +26,13 @@
/*
* lib_refresh.c
*
- * The routines wredrawln(), wrefresh() and wnoutrefresh().
+ * The routines wrefresh() and wnoutrefresh().
*
*/
#include <curses.priv.h>
-MODULE_ID("Id: lib_refresh.c,v 1.14 1997/02/02 01:05:26 tom Exp $")
-
-int wredrawln(WINDOW *win, int beg, int num)
-{
- T((T_CALLED("wredrawln(%p,%d,%d)"), win, beg, num));
- touchline(win, beg, num);
- wrefresh(win);
- returnCode(OK);
-}
+MODULE_ID("Id: lib_refresh.c,v 1.17 1997/11/29 19:54:29 tom Exp $")
int wrefresh(WINDOW *win)
{
@@ -153,14 +147,16 @@ bool wide;
}
+#if USE_SCROLL_HINTS
if (wide) {
int oind = oline->oldindex;
nline->oldindex = (oind == _NEWINDEX) ? _NEWINDEX : begy + oind + win->_yoffset;
}
+#endif /* USE_SCROLL_HINTS */
oline->firstchar = oline->lastchar = _NOCHANGE;
- oline->oldindex = i;
+ if_USE_SCROLL_HINTS(oline->oldindex = i);
}
if (win->_clear) {