From f28be942323a40dd33ef7f3ae1e50a84cf1555ea Mon Sep 17 00:00:00 2001 From: info-cppsp Date: Mon, 11 Sep 2017 16:50:06 +0200 Subject: i45 fix graphs invisible --- sensors-applet/active-sensor.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sensors-applet/active-sensor.c b/sensors-applet/active-sensor.c index 515ad79..78d03b6 100644 --- a/sensors-applet/active-sensor.c +++ b/sensors-applet/active-sensor.c @@ -311,15 +311,15 @@ static void active_sensor_update_graph(ActiveSensor *as, cairo_t *cr) { x, 0); cairo_pattern_add_color_stop_rgb(pattern, 0, - as->graph_color.red / 65535.0 - CAIRO_GRAPH_COLOR_GRADIENT, - as->graph_color.green / 65535.0 - CAIRO_GRAPH_COLOR_GRADIENT, - as->graph_color.blue / 65535.0 - CAIRO_GRAPH_COLOR_GRADIENT); + as->graph_color.red - CAIRO_GRAPH_COLOR_GRADIENT, + as->graph_color.green - CAIRO_GRAPH_COLOR_GRADIENT, + as->graph_color.blue - CAIRO_GRAPH_COLOR_GRADIENT); cairo_pattern_add_color_stop_rgb(pattern, height, - as->graph_color.red / 65535.0 + CAIRO_GRAPH_COLOR_GRADIENT, - as->graph_color.green / 65535.0 + CAIRO_GRAPH_COLOR_GRADIENT, - as->graph_color.blue / 65535.0 + CAIRO_GRAPH_COLOR_GRADIENT); + as->graph_color.red + CAIRO_GRAPH_COLOR_GRADIENT, + as->graph_color.green + CAIRO_GRAPH_COLOR_GRADIENT, + as->graph_color.blue + CAIRO_GRAPH_COLOR_GRADIENT); cairo_set_source(cr, pattern); cairo_stroke(cr); -- cgit v1.2.1