summaryrefslogtreecommitdiffstats
path: root/mbbsd/pfterm.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-12-29 17:27:27 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-12-29 17:27:27 +0800
commit6c79d638fefc182f68c9b539e532256cf218febf (patch)
tree5838ff1db3b75e649dc78adbeb48df59cc8e9159 /mbbsd/pfterm.c
parentaa3007d2546e871d72ef482f16ebc3dd3403dd91 (diff)
downloadpttbbs-6c79d638fefc182f68c9b539e532256cf218febf.tar
pttbbs-6c79d638fefc182f68c9b539e532256cf218febf.tar.gz
pttbbs-6c79d638fefc182f68c9b539e532256cf218febf.tar.bz2
pttbbs-6c79d638fefc182f68c9b539e532256cf218febf.tar.lz
pttbbs-6c79d638fefc182f68c9b539e532256cf218febf.tar.xz
pttbbs-6c79d638fefc182f68c9b539e532256cf218febf.tar.zst
pttbbs-6c79d638fefc182f68c9b539e532256cf218febf.zip
- pmore: enable warning messages for movie playing
- pfterm: fix chattr optimization for background attr change git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3757 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/pfterm.c')
-rw-r--r--mbbsd/pfterm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mbbsd/pfterm.c b/mbbsd/pfterm.c
index 14c15e67..1dba337a 100644
--- a/mbbsd/pfterm.c
+++ b/mbbsd/pfterm.c
@@ -1501,10 +1501,11 @@ fterm_chattr(char *s, ftattr oattr, ftattr nattr)
// for background change?
if ((oblink != blink && !blink) ||
(obold != bold && !bold) ||
- (bg == FTATTR_DEFAULT_FG && obg != bg) )
+ (bg == FTATTR_DEFAULT_BG && obg != bg) )
{
if (lead) lead = 0; else *s++ = ';';
*s++ = '0';
+
ofg = FTATTR_DEFAULT_FG;
obg = FTATTR_DEFAULT_BG;
obold = 0; oblink = 0;