From: <sa...@us...> - 2006-09-26 18:54:20
|
Revision: 17358 http://svn.sourceforge.net/gaim/?rev=17358&view=rev Author: sadrul Date: 2006-09-26 11:54:12 -0700 (Tue, 26 Sep 2006) Log Message: ----------- 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. Modified Paths: -------------- trunk/console/libgnt/gntmain.c Modified: trunk/console/libgnt/gntmain.c =================================================================== --- trunk/console/libgnt/gntmain.c 2006-09-26 18:21:14 UTC (rev 17357) +++ trunk/console/libgnt/gntmain.c 2006-09-26 18:54:12 UTC (rev 17358) @@ -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); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |