From 62b2967815b4ab48c60ecd983faa4350abffcb6c Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Sat, 24 May 2003 17:03:08 +0000 Subject: Bug solved: string was painted to Privwin, even when scrolled --- vchat-ui.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'vchat-ui.c') diff --git a/vchat-ui.c b/vchat-ui.c index 1fde124..243d1f4 100755 --- a/vchat-ui.c +++ b/vchat-ui.c @@ -343,7 +343,7 @@ int writepriv (unsigned char *str) { fprintf( vchat_logfile, "%s1%s\n", date, str); } - if ( !privwinhidden && (sb_priv->scroll == sb_priv->scroll) && + if ( !privwinhidden && (sb_priv->scroll == sb_priv->count) && ((filtertype == 0) || ( testfilter(tmp)))) { i = writescr(private, tmp); } @@ -1094,16 +1094,18 @@ initui (void) /* set colors for windows */ if (has_colors()) { - wattrset (console, COLOR_PAIR (9)); +// wattrset (console, COLOR_PAIR (9)); wattrset (input, COLOR_PAIR (0)); - wattrset (topic, COLOR_PAIR (9)); +// wattrset (topic, COLOR_PAIR (9)); wbkgd (output, COLOR_PAIR(8)); - wbkgd (console, COLOR_PAIR (9)); +// wbkgd (console, COLOR_PAIR (9)); wbkgd (channel, COLOR_PAIR (0)); wbkgd (input, COLOR_PAIR (0)); + wattron (console, A_REVERSE); + wattron (topic, A_REVERSE); if (private) wbkgd (private, COLOR_PAIR (0)); - wbkgd (topic, COLOR_PAIR (9)); +// wbkgd (topic, COLOR_PAIR (9)); } else { wattron (console, A_REVERSE); wattron (topic, A_REVERSE); -- cgit v1.2.3