forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
conky-1.9.0-lines-fix.patch
36 lines (35 loc) · 1.04 KB
/
conky-1.9.0-lines-fix.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
diff -urN old/src/conky.c new/src/conky.c
--- old/src/conky.c 2012-05-03 23:22:21.000000000 +0200
+++ new/src/conky.c 2012-08-15 00:06:59.256311301 +0200
@@ -3065,12 +3065,26 @@
og = g;
}
- /* this is mugfugly, but it works */
- XDrawLine(display, window.drawable, window.gc,
- cur_x + i + 1,
- specials[special_index].dotgraph ? og : by + h,
- cur_x + i + 1,
- g);
+ if (specials[special_index].dotgraph) {
+ if (og == g) {
+ XDrawPoint(display, window.drawable,
+ window.gc, cur_x + i + 1, g);
+ } else {
+ XDrawLine(display, window.drawable, window.gc,
+ cur_x + i + 1,
+ og,
+ cur_x + i + 1,
+ g);
+ }
+ } else {
+ /* this is mugfugly, but it works */
+ XDrawLine(display, window.drawable, window.gc,
+ cur_x + i + 1,
+ by + h,
+ cur_x + i + 1,
+ g);
+ }
+
++j;
}
if (tmpcolour) free(tmpcolour);