summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: aca2869)
raw | patch | inline | side by side (parent: aca2869)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Fri, 16 Dec 2011 20:19:49 +0000 (20:19 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Fri, 16 Dec 2011 20:19:49 +0000 (20:19 +0000) |
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.3/program@2245 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_gfx.c | patch | blob | history |
diff --git a/src/rrd_gfx.c b/src/rrd_gfx.c
index c977d566786ff4d55822e9a76c2340719dbe6ba1..dbda3fe036e98041a4f9caa6a596af1b52f03840 100644 (file)
--- a/src/rrd_gfx.c
+++ b/src/rrd_gfx.c
cairo_user_to_device_distance(cr, &line_width, &line_height);
line_width = line_width / 2.0 - ceil(line_width / 2.0);
line_height = line_height / 2.0 - ceil(line_height / 2.0);
- *x = ceil(*x - 0.5) - line_width;
+ *x = floor(*x - 0.5) - line_width;
*y = ceil(*y + 0.5) + line_height;
cairo_device_to_user(cr, x, y);
}