aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorMartin Mathieson <martin.r.mathieson@googlemail.com>2012-08-07 21:42:53 +0000
committerMartin Mathieson <martin.r.mathieson@googlemail.com>2012-08-07 21:42:53 +0000
commit5c1c9d22446e4effebc0f82c757c6e2a6bfa1426 (patch)
tree501e405fefb961a936dbc9baf559a0b93bc14425 /ui
parent06c393807c47c1d71342f0c2da380ee609d45e63 (diff)
Don't add 0.5 to coordinates used for drawing the cross. Was going
beyond the area and leaving artifacts. svn path=/trunk/; revision=44313
Diffstat (limited to 'ui')
-rw-r--r--ui/gtk/rlc_lte_graph.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/gtk/rlc_lte_graph.c b/ui/gtk/rlc_lte_graph.c
index f9e709952c..334ec9c9fc 100644
--- a/ui/gtk/rlc_lte_graph.c
+++ b/ui/gtk/rlc_lte_graph.c
@@ -2197,12 +2197,12 @@ static void cross_draw(struct graph *g, int x, int y)
cairo_set_line_width(cr, 1.0);
/* Horizonal line */
- cairo_move_to(cr, g->wp.x+0.5, y+0.5);
- cairo_line_to(cr, g->wp.x + g->wp.width+0.5, y+0.5);
+ cairo_move_to(cr, g->wp.x, y);
+ cairo_line_to(cr, g->wp.x + g->wp.width, y);
/* Vertical line */
- cairo_move_to(cr, x+0.5, g->wp.y+0.5);
- cairo_line_to(cr, x+0.5, g->wp.y + g->wp.height+0.5);
+ cairo_move_to(cr, x, g->wp.y);
+ cairo_line_to(cr, x, g->wp.y + g->wp.height);
cairo_stroke(cr);
cairo_destroy(cr);
}