[mate-sensors-applet] 01/03: debian/patches: Add 0000_fix_invisible_graphs.patch.

Vangelis Mouhtsis gnugr-guest at moszumanska.debian.org
Sun Sep 24 12:04:47 UTC 2017


This is an automated email from the git hooks/post-receive script.

gnugr-guest pushed a commit to branch parrot/3.7
in repository mate-sensors-applet.

commit 000563d14ca114ec931fb85811373f13cfbf856a
Author: Vangelis Mouhtsis <vangelis at gnugr.org>
Date:   Sun Sep 24 14:49:46 2017 +0300

    debian/patches: Add 0000_fix_invisible_graphs.patch.
---
 debian/patches/0000_fix_invisible_graphs.patch | 26 ++++++++++++++++++++++++++
 debian/patches/series                          |  1 +
 2 files changed, 27 insertions(+)

diff --git a/debian/patches/0000_fix_invisible_graphs.patch b/debian/patches/0000_fix_invisible_graphs.patch
new file mode 100644
index 0000000..ab64efd
--- /dev/null
+++ b/debian/patches/0000_fix_invisible_graphs.patch
@@ -0,0 +1,26 @@
+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);
\ No newline at end of file
diff --git a/debian/patches/series b/debian/patches/series
index b64f6df..16360bd 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 1001_fix-FTBFS-on-hurd.patch
+0000_fix_invisible_graphs.patch
\ No newline at end of file

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mate/mate-sensors-applet.git



More information about the pkg-mate-commits mailing list