Checks for bottom right corner were reversed.

This commit is contained in:
blymn 2017-01-09 21:17:29 +00:00
parent a12c8506b7
commit b3963fa60a
1 changed files with 4 additions and 4 deletions

View File

@ -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 <sys/cdefs.h>
#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 <stdlib.h>
@ -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];