comparison finch/libgnt/gntwm.c @ 17712:43a55528ff26

propagate from branch 'im.pidgin.pidgin' (head b5c55520ae8ff7186733fd82db23a6e4452976cc) to branch 'im.pidgin.soc.2007.finchfeat' (head 93037197c5356731d62e75b4050ca7d01b1017d6)
author Eric Polino <aluink@pidgin.im>
date Mon, 04 Jun 2007 15:12:50 +0000
parents ab71a09600ad e5cc13b1e0ca
children 3177ef1d6824
comparison
equal deleted inserted replaced
17543:223a4fca43a1 17712:43a55528ff26
837 if (fgp == -1) 837 if (fgp == -1)
838 fgp = COLOR_BLACK; 838 fgp = COLOR_BLACK;
839 if (bgp == -1) 839 if (bgp == -1)
840 bgp = COLOR_WHITE; 840 bgp = COLOR_WHITE;
841 if (now & A_REVERSE) 841 if (now & A_REVERSE)
842 fgp ^= bgp ^= fgp ^= bgp; /* *wink* */ 842 {
843 short tmp = fgp;
844 fgp = bgp;
845 bgp = tmp;
846 }
843 ret = color_content(fgp, &r, &g, &b); 847 ret = color_content(fgp, &r, &g, &b);
844 fg.r = r; fg.b = b; fg.g = g; 848 fg.r = r; fg.b = b; fg.g = g;
845 ret = color_content(bgp, &r, &g, &b); 849 ret = color_content(bgp, &r, &g, &b);
846 bg.r = r; bg.b = b; bg.g = g; 850 bg.r = r; bg.b = b; bg.g = g;
847 #define ADJUST(x) (x = x * 255 / 1000) 851 #define ADJUST(x) (x = x * 255 / 1000)