diff --git a/src/conky.cc b/src/conky.cc index 9177c898..bbe04291 100644 --- a/src/conky.cc +++ b/src/conky.cc @@ -1547,12 +1547,12 @@ int draw_each_line_inner(char *s, int special_index, int last_special_applied) ); } #endif /* DEBUG_lol */ - XSetForeground(display, window.gc, tmpcolour[ + set_foreground_color(tmpcolour[ (int)((float)(w - 2) - current->graph[j] * (w - 2) / (float)current->scale) ]); } else { - XSetForeground(display, window.gc, tmpcolour[colour_idx++]); + set_foreground_color(tmpcolour[colour_idx++]); } } /* this is mugfugly, but it works */