diff options
author | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2012-11-25 14:15:02 +0000 |
---|---|---|
committer | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2012-11-25 14:15:02 +0000 |
commit | 4fb9cfe714c89f104c40f1747789f46297aea5c9 (patch) | |
tree | 80989da52344f4184273bc20fda08a41e73bef39 /ui/gtk/tcp_graph.c | |
parent | 0d1f86c33ee4425001fa42e17cd2dd1cca7842ae (diff) |
Set line width 1 for the cairo context used to draw all lines (bug
8017). Do it outside of the loop.
svn path=/trunk/; revision=46176
Diffstat (limited to 'ui/gtk/tcp_graph.c')
-rw-r--r-- | ui/gtk/tcp_graph.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/gtk/tcp_graph.c b/ui/gtk/tcp_graph.c index 1b68e2666f..37969c4287 100644 --- a/ui/gtk/tcp_graph.c +++ b/ui/gtk/tcp_graph.c @@ -2278,6 +2278,9 @@ static void graph_pixmap_draw (struct graph *g) cairo_rectangle (cr, 0, 0, g->wp.width, g->wp.height); cairo_fill (cr); + /* Want line width 1 for all elements */ + cairo_set_line_width (cr, 1.0); + for (list=g->elists; list; list=list->next) for (e=list->elements; e->type != ELMT_NONE; e++) { switch (e->type) { |