Mercurial > pidgin.yaz
comparison finch/libgnt/gntwm.c @ 17174:e5cc13b1e0ca
Fix a compiler warning by using a temporary variable for swapping.
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Sat, 19 May 2007 08:12:31 +0000 |
parents | 3c4280387259 |
children | 8d3c28521112 43a55528ff26 |
comparison
equal
deleted
inserted
replaced
17173:b26a225b6fc6 | 17174:e5cc13b1e0ca |
---|---|
695 if (fgp == -1) | 695 if (fgp == -1) |
696 fgp = COLOR_BLACK; | 696 fgp = COLOR_BLACK; |
697 if (bgp == -1) | 697 if (bgp == -1) |
698 bgp = COLOR_WHITE; | 698 bgp = COLOR_WHITE; |
699 if (now & A_REVERSE) | 699 if (now & A_REVERSE) |
700 fgp ^= bgp ^= fgp ^= bgp; /* *wink* */ | 700 { |
701 short tmp = fgp; | |
702 fgp = bgp; | |
703 bgp = tmp; | |
704 } | |
701 ret = color_content(fgp, &r, &g, &b); | 705 ret = color_content(fgp, &r, &g, &b); |
702 fg.r = r; fg.b = b; fg.g = g; | 706 fg.r = r; fg.b = b; fg.g = g; |
703 ret = color_content(bgp, &r, &g, &b); | 707 ret = color_content(bgp, &r, &g, &b); |
704 bg.r = r; bg.b = b; bg.g = g; | 708 bg.r = r; bg.b = b; bg.g = g; |
705 #define ADJUST(x) (x = x * 255 / 1000) | 709 #define ADJUST(x) (x = x * 255 / 1000) |