diff options
author | erdgeist <> | 2003-05-24 17:03:08 +0000 |
---|---|---|
committer | erdgeist <> | 2003-05-24 17:03:08 +0000 |
commit | 62b2967815b4ab48c60ecd983faa4350abffcb6c (patch) | |
tree | fa6f7902b94cf16d54ad68bcc0afb28fe24010d1 /vchat-ui.c | |
parent | a2d7525c96aab16b6f372fd66ec39c5e26a4f8bd (diff) |
Bug solved: string was painted to Privwin, even when scrolled
Diffstat (limited to 'vchat-ui.c')
-rwxr-xr-x | vchat-ui.c | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -343,7 +343,7 @@ int writepriv (unsigned char *str) { | |||
343 | fprintf( vchat_logfile, "%s1%s\n", date, str); | 343 | fprintf( vchat_logfile, "%s1%s\n", date, str); |
344 | } | 344 | } |
345 | 345 | ||
346 | if ( !privwinhidden && (sb_priv->scroll == sb_priv->scroll) && | 346 | if ( !privwinhidden && (sb_priv->scroll == sb_priv->count) && |
347 | ((filtertype == 0) || ( testfilter(tmp)))) { | 347 | ((filtertype == 0) || ( testfilter(tmp)))) { |
348 | i = writescr(private, tmp); | 348 | i = writescr(private, tmp); |
349 | } | 349 | } |
@@ -1094,16 +1094,18 @@ initui (void) | |||
1094 | 1094 | ||
1095 | /* set colors for windows */ | 1095 | /* set colors for windows */ |
1096 | if (has_colors()) { | 1096 | if (has_colors()) { |
1097 | wattrset (console, COLOR_PAIR (9)); | 1097 | // wattrset (console, COLOR_PAIR (9)); |
1098 | wattrset (input, COLOR_PAIR (0)); | 1098 | wattrset (input, COLOR_PAIR (0)); |
1099 | wattrset (topic, COLOR_PAIR (9)); | 1099 | // wattrset (topic, COLOR_PAIR (9)); |
1100 | wbkgd (output, COLOR_PAIR(8)); | 1100 | wbkgd (output, COLOR_PAIR(8)); |
1101 | wbkgd (console, COLOR_PAIR (9)); | 1101 | // wbkgd (console, COLOR_PAIR (9)); |
1102 | wbkgd (channel, COLOR_PAIR (0)); | 1102 | wbkgd (channel, COLOR_PAIR (0)); |
1103 | wbkgd (input, COLOR_PAIR (0)); | 1103 | wbkgd (input, COLOR_PAIR (0)); |
1104 | wattron (console, A_REVERSE); | ||
1105 | wattron (topic, A_REVERSE); | ||
1104 | if (private) | 1106 | if (private) |
1105 | wbkgd (private, COLOR_PAIR (0)); | 1107 | wbkgd (private, COLOR_PAIR (0)); |
1106 | wbkgd (topic, COLOR_PAIR (9)); | 1108 | // wbkgd (topic, COLOR_PAIR (9)); |
1107 | } else { | 1109 | } else { |
1108 | wattron (console, A_REVERSE); | 1110 | wattron (console, A_REVERSE); |
1109 | wattron (topic, A_REVERSE); | 1111 | wattron (topic, A_REVERSE); |