Source-Changes-HG archive

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

[src/trunk]: src/lib/libcurses Use the background attributes for the backgrou...



details:   https://anonhg.NetBSD.org/src/rev/e54b00cb9873
branches:  trunk
changeset: 588033:e54b00cb9873
user:      jdc <jdc%NetBSD.org@localhost>
date:      Sun Feb 05 17:04:46 2006 +0000

description:
Use the background attributes for the background when inserting characters.

diffstat:

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

diffs (30 lines):

diff -r 88994a7133c3 -r e54b00cb9873 lib/libcurses/insch.c
--- a/lib/libcurses/insch.c     Sun Feb 05 16:44:55 2006 +0000
+++ b/lib/libcurses/insch.c     Sun Feb 05 17:04:46 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: insch.c,v 1.19 2006/01/26 07:26:37 jdc Exp $   */
+/*     $NetBSD: insch.c,v 1.20 2006/02/05 17:04:46 jdc Exp $   */
 
 /*
  * Copyright (c) 1981, 1993, 1994
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)insch.c    8.2 (Berkeley) 5/4/94";
 #else
-__RCSID("$NetBSD: insch.c,v 1.19 2006/01/26 07:26:37 jdc Exp $");
+__RCSID("$NetBSD: insch.c,v 1.20 2006/02/05 17:04:46 jdc Exp $");
 #endif
 #endif                         /* not lint */
 
@@ -107,9 +107,9 @@
                temp1->ch = win->bch;
        temp1->attr = (attr_t) ch & __ATTRIBUTES;
        if (temp1->attr & __COLOR)
-               temp1->attr |= (win->bch & ~__COLOR);
+               temp1->attr |= (win->battr & ~__COLOR);
        else
-               temp1->attr |= win->bch;
+               temp1->attr |= win->battr;
        __touchline(win, (int) win->cury, (int) win->curx, (int) win->maxx - 1);
        if (win->cury == LINES - 1 &&
            (win->lines[LINES - 1]->line[COLS - 1].ch != ' ' ||



Home | Main Index | Thread Index | Old Index