diff options
author | info-cppsp <[email protected]> | 2017-09-11 16:50:06 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-09-12 20:26:50 +0200 |
commit | f1c235f004aed3a34d2ed1bdb9657548b67c830d (patch) | |
tree | b64a2107ee82309623f0fbd39acf4cb5d282b64c /sensors-applet | |
parent | 8009d56b106963c8eb0541b6cfebdd738af87056 (diff) | |
download | mate-sensors-applet-f1c235f004aed3a34d2ed1bdb9657548b67c830d.tar.bz2 mate-sensors-applet-f1c235f004aed3a34d2ed1bdb9657548b67c830d.tar.xz |
i45 fix graphs invisible
Diffstat (limited to 'sensors-applet')
-rw-r--r-- | sensors-applet/active-sensor.c | 12 |
1 files 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); |