summaryrefslogtreecommitdiffstats
path: root/lib/libcurses/newwin.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libcurses/newwin.c')
-rw-r--r--lib/libcurses/newwin.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/lib/libcurses/newwin.c b/lib/libcurses/newwin.c
index a2f577a..8f09cbf 100644
--- a/lib/libcurses/newwin.c
+++ b/lib/libcurses/newwin.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1981, 1993
+ * Copyright (c) 1981, 1993, 1994
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -32,12 +32,13 @@
*/
#ifndef lint
-static char sccsid[] = "@(#)newwin.c 8.1 (Berkeley) 7/20/93";
+static char sccsid[] = "@(#)newwin.c 8.3 (Berkeley) 7/27/94";
#endif /* not lint */
-#include <curses.h>
#include <stdlib.h>
+#include "curses.h"
+
#undef nl /* Don't need it here, and it interferes. */
static WINDOW *__makenew __P((int, int, int, int, int));
@@ -232,16 +233,11 @@ void
__swflags(win)
register WINDOW *win;
{
- win->flags &=
- ~(__ENDLINE | __FULLLINE | __FULLWIN | __SCROLLWIN | __LEAVEOK);
+ win->flags &= ~(__ENDLINE | __FULLWIN | __SCROLLWIN | __LEAVEOK);
if (win->begx + win->maxx == COLS) {
win->flags |= __ENDLINE;
- if (win->begx == 0) {
- if (AL && DL)
- win->flags |= __FULLLINE;
- if (win->maxy == LINES && win->begy == 0)
- win->flags |= __FULLWIN;
- }
+ if (win->begx == 0 && win->maxy == LINES && win->begy == 0)
+ win->flags |= __FULLWIN;
if (win->begy + win->maxy == LINES)
win->flags |= __SCROLLWIN;
}
OpenPOWER on IntegriCloud