summaryrefslogtreecommitdiff
path: root/lib/libcurses/base/lib_dft_fgbg.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2000-07-10 03:06:18 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2000-07-10 03:06:18 +0000
commite3af44217703da8d3b5b2bc031f1913662972a8d (patch)
tree5a888b365a116d370ceac659b8d7a0aa78e80371 /lib/libcurses/base/lib_dft_fgbg.c
parented520f375deddce4d44f12f3a1999d4ce9abddb6 (diff)
ncurses 5.1
Diffstat (limited to 'lib/libcurses/base/lib_dft_fgbg.c')
-rw-r--r--lib/libcurses/base/lib_dft_fgbg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libcurses/base/lib_dft_fgbg.c b/lib/libcurses/base/lib_dft_fgbg.c
index bad566299e4..3604fc151f0 100644
--- a/lib/libcurses/base/lib_dft_fgbg.c
+++ b/lib/libcurses/base/lib_dft_fgbg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lib_dft_fgbg.c,v 1.5 2000/06/19 03:53:41 millert Exp $ */
+/* $OpenBSD: lib_dft_fgbg.c,v 1.6 2000/07/10 03:06:12 millert Exp $ */
/****************************************************************************
* Copyright (c) 1998,1999,2000 Free Software Foundation, Inc. *
@@ -35,7 +35,7 @@
#include <curses.priv.h>
#include <term.h>
-MODULE_ID("$From: lib_dft_fgbg.c,v 1.11 2000/05/07 01:26:06 tom Exp $")
+MODULE_ID("$From: lib_dft_fgbg.c,v 1.13 2000/07/07 16:50:27 tom Exp $")
/*
* Modify the behavior of color-pair 0 so that the library doesn't assume that
@@ -63,7 +63,7 @@ assume_default_colors(int fg, int bg)
if (initialize_pair) /* don't know how to handle this */
returnCode(ERR);
- SP->_default_color = (fg != COLOR_WHITE) || (bg != COLOR_BLACK);
+ SP->_default_color = (fg < 0 || fg == C_MASK) || (bg < 0 || bg == C_MASK);
SP->_has_sgr_39_49 = (tigetflag("AX") == TRUE);
SP->_default_fg = (fg >= 0) ? (fg & C_MASK) : C_MASK;
SP->_default_bg = (bg >= 0) ? (bg & C_MASK) : C_MASK;