From: Kevin Lyles Date: Fri, 6 Aug 2010 02:34:06 +0000 (-0500) Subject: Fixed foreground colors being semi-transparent X-Git-Url: http://vcs.maemo.org/git/?p=monky;a=commitdiff_plain;h=30295b672d7d3c2dd228dbebdff10a9fcbf49ee8 Fixed foreground colors being semi-transparent Signed-off-by: Brenden Matthews --- diff --git a/src/conky.c b/src/conky.c index 5f2f617..20f2f67 100644 --- a/src/conky.c +++ b/src/conky.c @@ -3084,12 +3084,14 @@ int draw_each_line_inner(char *s, int special_index, int last_special_applied) ); } #endif /* DEBUG_lol */ - XSetForeground(display, window.gc, tmpcolour[ - (int)((float)(w - 2) - specials[special_index].graph[j] * - (w - 2) / (float)specials[special_index].graph_scale) - ]); + set_foreground_color(tmpcolour[ + (int)((float)(w - 2) - + specials[special_index].graph[j] + * (w - 2) / + (float)specials[special_index].graph_scale) + ]); } else { - XSetForeground(display, window.gc, tmpcolour[colour_idx++]); + set_foreground_color(tmpcolour[colour_idx++]); } } /* this is mugfugly, but it works */