Mercurial > pidgin
changeset 14626:d1935057d82c
[gaim-migrate @ 17358]
The html-dumps should be a little better now. There's no way of knowing
the rgb-contents of the default colors (-1), so gnt is going to make an
assumption for the colors and use that.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Tue, 26 Sep 2006 18:54:12 +0000 |
parents | 3e193cf68660 |
children | 134f4d999ff0 |
files | console/libgnt/gntmain.c |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/console/libgnt/gntmain.c Tue Sep 26 18:21:14 2006 +0000 +++ b/console/libgnt/gntmain.c Tue Sep 26 18:54:12 2006 +0000 @@ -474,7 +474,8 @@ CHECK(A_UNDERLINE, "<u>", "</u>"); CHECK(A_BLINK, "<blink>", "</blink>"); - if ((now & A_COLOR) != (old & A_COLOR)) + if ((now & A_COLOR) != (old & A_COLOR) || + (now & A_REVERSE) != (old & A_REVERSE)) { int ret; short fgp, bgp, r, g, b; @@ -484,6 +485,12 @@ } fg, bg; ret = pair_content(PAIR_NUMBER(now & A_COLOR), &fgp, &bgp); + if (fgp == -1) + fgp = COLOR_BLACK; + if (bgp == -1) + bgp = COLOR_WHITE; + if (now & A_REVERSE) + fgp ^= bgp ^= fgp ^= bgp; /* *wink* */ ret = color_content(fgp, &r, &g, &b); fg.r = r; fg.b = b; fg.g = g; ret = color_content(bgp, &r, &g, &b);