1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-26 04:17:33 +00:00

Fixed foreground colors being semi-transparent

Signed-off-by: Brenden Matthews <brenden@diddyinc.com>
This commit is contained in:
Kevin Lyles 2010-08-05 21:34:06 -05:00 committed by Brenden Matthews
parent eb0a4cc418
commit 30295b672d

View File

@ -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 */