X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=program%2Fsrc%2Frrd_gfx.c;h=dbda3fe036e98041a4f9caa6a596af1b52f03840;hb=5d01ae62c75d5d73c377245a48b6c16a99d7c0df;hp=c977d566786ff4d55822e9a76c2340719dbe6ba1;hpb=1a3301876b5ab7bc193d01dc0392fd59e9ae580b;p=rrdtool-all.git diff --git a/program/src/rrd_gfx.c b/program/src/rrd_gfx.c index c977d566..dbda3fe0 100644 --- a/program/src/rrd_gfx.c +++ b/program/src/rrd_gfx.c @@ -295,7 +295,7 @@ void gfx_line_fit( 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); }