From: oetiker Date: Mon, 11 Jun 2007 16:34:51 +0000 (+0000) Subject: fixed indentation, added documentation note on gridfitting. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b3676d988a42494fedb8b3febd74bb80d8f8bdb3;p=rrdtool-all.git fixed indentation, added documentation note on gridfitting. git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1112 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/doc/rrdgraph.pod b/program/doc/rrdgraph.pod index 84856750..b605fae5 100644 --- a/program/doc/rrdgraph.pod +++ b/program/doc/rrdgraph.pod @@ -151,6 +151,8 @@ points to device resolution pixels, this results in a crisper aperance. If this is not to your liking, you can use this switch to turn this behaviour off. +Gridfitting is turned off for PDF, EPS, SVG output by default. + =item Grid =over 4 diff --git a/program/src/rrd_graph.c b/program/src/rrd_graph.c index aeea5ddf..e8381213 100644 --- a/program/src/rrd_graph.c +++ b/program/src/rrd_graph.c @@ -327,16 +327,16 @@ int im_free( free(im->gdes); if (im->font_options) cairo_font_options_destroy(im->font_options); - - status = cairo_status (im->cr); + + status = cairo_status(im->cr); if (im->cr) cairo_destroy(im->cr); if (im->surface) cairo_surface_destroy(im->surface); if (status) - fprintf(stderr,"OOPS: Cairo has issuesm it can't even die: %s\n", - cairo_status_to_string (status)); + fprintf(stderr, "OOPS: Cairo has issuesm it can't even die: %s\n", + cairo_status_to_string(status)); return 0; } @@ -2407,11 +2407,11 @@ void axis_paint( /* arrow for X and Y axis direction */ - gfx_new_area(im, im->xorigin + im->xsize + 2, im->yorigin - 3, im->xorigin + im->xsize + 2, im->yorigin + 3, im->xorigin + im->xsize + 7, im->yorigin, /* horyzontal */ + gfx_new_area(im, im->xorigin + im->xsize + 2, im->yorigin - 3, im->xorigin + im->xsize + 2, im->yorigin + 3, im->xorigin + im->xsize + 7, im->yorigin, /* horyzontal */ im->graph_col[GRC_ARROW]); gfx_close_path(im); - gfx_new_area(im, im->xorigin - 3, im->yorigin - im->ysize - 2, im->xorigin + 3, im->yorigin - im->ysize - 2, im->xorigin, im->yorigin - im->ysize - 7, /* vertical */ + gfx_new_area(im, im->xorigin - 3, im->yorigin - im->ysize - 2, im->xorigin + 3, im->yorigin - im->ysize - 2, im->xorigin, im->yorigin - im->ysize - 7, /* vertical */ im->graph_col[GRC_ARROW]); gfx_close_path(im);