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

Martin Wimpress flexiondotorg-guest at moszumanska.debian.org
Sat Sep 23 19:29:40 UTC 2017


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

flexiondotorg-guest pushed a commit to branch master
in repository mate-sensors-applet.

commit bae4693aed83adb00b8f4c2636062dd637985d0c
Author: Martin Wimpress <martin.wimpress at ubuntu.com>
Date:   Sat Sep 23 20:29:30 2017 +0100

    debian/patches: Add 0000_fix_invisible_graphs.patch.
---
 debian/changelog                               |  6 ++++++
 debian/patches/0000_fix_invisible_graphs.patch | 26 ++++++++++++++++++++++++++
 debian/patches/series                          |  1 +
 3 files changed, 33 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 2be0840..04496db 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+mate-sensors-applet (1.18.2-5) UNRELEASED; urgency=medium
+
+  * debian/patches: Add 0000_fix_invisible_graphs.patch.
+
+ -- Martin Wimpress <martin.wimpress at ubuntu.com>  Sat, 23 Sep 2017 20:26:04 +0100
+
 mate-sensors-applet (1.18.2-4) unstable; urgency=medium
 
   * debian/patches:
diff --git a/debian/patches/0000_fix_invisible_graphs.patch b/debian/patches/0000_fix_invisible_graphs.patch
new file mode 100644
index 0000000..305de48
--- /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);
diff --git a/debian/patches/series b/debian/patches/series
index b64f6df..100e64a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 1001_fix-FTBFS-on-hurd.patch
+0000_fix_invisible_graphs.patch

-- 
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