From: Jens Axboe Date: Fri, 13 Apr 2012 12:23:17 +0000 (+0200) Subject: graph: use rounded graph connections X-Git-Tag: gfio-0.1~7 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=10987b9dfa87c68400c3883216a6ce6b20f56471;ds=sidebyside graph: use rounded graph connections Signed-off-by: Jens Axboe --- diff --git a/graph.c b/graph.c index 06cfb1ac..7a35736b 100644 --- a/graph.c +++ b/graph.c @@ -586,6 +586,8 @@ void line_graph_draw(struct graph *g, cairo_t *cr) goto skip_data; cairo_set_line_width(cr, 1.5); + cairo_set_line_join(cr, CAIRO_LINE_JOIN_ROUND); + flist_for_each(lentry, &g->label_list) { i = flist_entry(lentry, struct graph_label, list); first = 1; @@ -600,9 +602,8 @@ void line_graph_draw(struct graph *g, cairo_t *cr) if (first) { cairo_move_to(cr, tx, ty); first = 0; - } else { + } else cairo_line_to(cr, tx, ty); - } } cairo_stroke(cr); }