diff --git a/lib/libcurses/border.c b/lib/libcurses/border.c index 689000319d33..8b8816c73cd9 100644 --- a/lib/libcurses/border.c +++ b/lib/libcurses/border.c @@ -1,4 +1,4 @@ -/* $NetBSD: border.c,v 1.17 2017/01/06 13:53:18 roy Exp $ */ +/* $NetBSD: border.c,v 1.18 2017/01/09 21:17:29 blymn Exp $ */ /* * Copyright (c) 2000 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ #include #ifndef lint -__RCSID("$NetBSD: border.c,v 1.17 2017/01/06 13:53:18 roy Exp $"); +__RCSID("$NetBSD: border.c,v 1.18 2017/01/09 21:17:29 blymn Exp $"); #endif /* not lint */ #include @@ -144,7 +144,7 @@ wborder(WINDOW *win, chtype left, chtype right, chtype top, chtype bottom, } /* Corners */ - if (!(win->maxx == LINES && win->maxy == COLS && + if (!(win->maxy == LINES && win->maxx == COLS && (win->flags & __SCROLLOK) && (win->flags & __SCROLLWIN))) { fp[0].ch = (wchar_t) topleft & __CHARTEXT; fp[0].attr = (attr_t) topleft & __ATTRIBUTES; @@ -492,7 +492,7 @@ int wborder_set(WINDOW *win, const cchar_t *ls, const cchar_t *rs, } /* Corners */ - if (!(win->maxx == LINES && win->maxy == COLS && + if (!(win->maxy == LINES && win->maxx == COLS && (win->flags & __SCROLLOK) && (win->flags & __SCROLLWIN))) { for (i = 0; i < tlcw; i++) { win->alines[0]->line[i].ch = topleft.vals[0];