From cea5c68eea3290fcf2a339fe12a443d613d5ee1e Mon Sep 17 00:00:00 2001 From: oetiker Date: Tue, 6 Jan 2009 15:45:53 +0000 Subject: [PATCH] TICK with negative numbers should 'start from the top of the graph' looking down ... now it does. git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.3/program@1725 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/rrd_graph.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/rrd_graph.c b/src/rrd_graph.c index c4e8bf0..63a4b2e 100644 --- a/src/rrd_graph.c +++ b/src/rrd_graph.c @@ -3189,7 +3189,7 @@ int graph_paint( if (im->gdes[i].yrule > 0) { gfx_line(im, im->xorigin + ii, - im->yorigin, + im->yorigin + 1.0, im->xorigin + ii, im->yorigin - im->gdes[i].yrule * @@ -3197,11 +3197,11 @@ int graph_paint( } else if (im->gdes[i].yrule < 0) { gfx_line(im, im->xorigin + ii, - im->yorigin - im->ysize, + im->yorigin - im->ysize - 1.0, im->xorigin + ii, - im->yorigin - (1 - + im->yorigin - im->ysize - im->gdes[i]. - yrule) * + yrule * im->ysize, 1.0, im->gdes[i].col); } } -- 2.30.2