summaryrefslogtreecommitdiff
path: root/src/fe-text/gui-printtext.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-02-10 14:21:29 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-02-10 14:21:29 +0000
commit83f640897906c3179c13445110286d1281ecf73c (patch)
treeb4fc8f61b86e28f4c038a799a9d79c1ff25c8c6d /src/fe-text/gui-printtext.c
parentc1d61ddeaf7eed4fe655b46d109db4766ba67b5b (diff)
downloadirssi-83f640897906c3179c13445110286d1281ecf73c.zip
It's possible to use black foreground color now.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2418 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text/gui-printtext.c')
-rw-r--r--src/fe-text/gui-printtext.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fe-text/gui-printtext.c b/src/fe-text/gui-printtext.c
index 3bd1de36..affd2b9f 100644
--- a/src/fe-text/gui-printtext.c
+++ b/src/fe-text/gui-printtext.c
@@ -244,8 +244,8 @@ static void sig_gui_print_text(WINDOW_REC *window, void *fgcolor,
if (window == NULL) {
g_return_if_fail(next_xpos != -1);
- attr |= fg > 0 ? fg : ATTR_RESETFG;
- attr |= bg > 0 ? (bg << 4) : ATTR_RESETBG;
+ attr |= fg >= 0 ? fg : ATTR_RESETFG;
+ attr |= bg >= 0 ? (bg << 4) : ATTR_RESETBG;
term_set_color(root_window, attr);
term_move(root_window, next_xpos, next_ypos);