Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libcurses Checks for bottom right corner were reversed.



details:   https://anonhg.NetBSD.org/src/rev/82a35938a0dc
branches:  trunk
changeset: 820429:82a35938a0dc
user:      blymn <blymn%NetBSD.org@localhost>
date:      Mon Jan 09 21:17:29 2017 +0000

description:
Checks for bottom right corner were reversed.

diffstat:

 lib/libcurses/border.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 7d110e3164a4 -r 82a35938a0dc lib/libcurses/border.c
--- a/lib/libcurses/border.c    Mon Jan 09 20:08:26 2017 +0000
+++ b/lib/libcurses/border.c    Mon Jan 09 21:17:29 2017 +0000
@@ -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 @@
        }
 
        /* 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 @@
        }
 
        /* 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];



Home | Main Index | Thread Index | Old Index