summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Pielmeier <billie@gentoo.org>2013-10-25 14:38:39 +0000
committerDaniel Pielmeier <billie@gentoo.org>2013-10-25 14:38:39 +0000
commitb7cc59ca0a8fe9ac2dddc09cd4bafc3926064438 (patch)
treed06135e4e0fc3550548bd62d4ced1e06db8fa2a9 /app-admin/conky/files
parentMarked ~hppa too. (diff)
downloadhistorical-b7cc59ca0a8fe9ac2dddc09cd4bafc3926064438.tar.gz
historical-b7cc59ca0a8fe9ac2dddc09cd4bafc3926064438.tar.bz2
historical-b7cc59ca0a8fe9ac2dddc09cd4bafc3926064438.zip
Add patch to fix default graph size. This fixes bug #459836. Thanks to Ted Marston for the report and patch.
Package-Manager: portage-2.2.7/cvs/Linux x86_64 Manifest-Sign-Key: 0x215AD14D
Diffstat (limited to 'app-admin/conky/files')
-rw-r--r--app-admin/conky/files/conky-1.9.0-default-graph-size.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/app-admin/conky/files/conky-1.9.0-default-graph-size.patch b/app-admin/conky/files/conky-1.9.0-default-graph-size.patch
new file mode 100644
index 000000000000..02f64e314e0e
--- /dev/null
+++ b/app-admin/conky/files/conky-1.9.0-default-graph-size.patch
@@ -0,0 +1,18 @@
+diff -r -U 5 conky-1.9.0/src/specials.c conky-1.9.0/src/specials.c
+--- conky-1.9.0/src/specials.c 2012-05-03 22:13:47.000000000 +0100
++++ conky-1.9.0/src/specials.c 2013-02-27 21:16:15.856669451 +0000
+@@ -186,12 +186,12 @@
+ g->scale = defscale;
+ if (sscanf(args, "%1023s %d,%d %x %x", buf, &g->height, &g->width, &g->first_colour, &g->last_colour) == 5) {
+ return strndup(buf, text_buffer_size);
+ }
+ buf[0] = '\0';
+- g->height = 25;
+- g->width = 0;
++ g->height = default_graph_height;
++ g->width = default_graph_width;
+ if (sscanf(args, "%x %x %u", &g->first_colour, &g->last_colour, &g->scale) == 3) {
+ return NULL;
+ }
+ g->scale = defscale;
+ if (sscanf(args, "%x %x", &g->first_colour, &g->last_colour) == 2) {