diff options
author | Daniel Pielmeier <billie@gentoo.org> | 2012-08-18 08:48:10 +0000 |
---|---|---|
committer | Daniel Pielmeier <billie@gentoo.org> | 2012-08-18 08:48:10 +0000 |
commit | 76d90cd772cf1d3036b1409b25b7e15273acd7ec (patch) | |
tree | 75854b772cfb4b267299ffba2a863a06128f1b04 /app-admin/conky/files | |
parent | Version bump (diff) | |
download | historical-76d90cd772cf1d3036b1409b25b7e15273acd7ec.tar.gz historical-76d90cd772cf1d3036b1409b25b7e15273acd7ec.tar.bz2 historical-76d90cd772cf1d3036b1409b25b7e15273acd7ec.zip |
Fix bug #431446. Thanks to Alessandro Di Marco for the report and the patch.
Package-Manager: portage-2.1.11.9/cvs/Linux i686
Diffstat (limited to 'app-admin/conky/files')
-rw-r--r-- | app-admin/conky/files/conky-1.9.0-lines-fix.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/app-admin/conky/files/conky-1.9.0-lines-fix.patch b/app-admin/conky/files/conky-1.9.0-lines-fix.patch new file mode 100644 index 000000000000..de48ab95e48a --- /dev/null +++ b/app-admin/conky/files/conky-1.9.0-lines-fix.patch @@ -0,0 +1,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); |