From 66db1aaf4a9a11aad64e0bcabe65ee58d7b25c06 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.2/program@1725 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/rrd_graph.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rrd_graph.c b/src/rrd_graph.c index b7c3f12..416b5d5 100644 --- a/src/rrd_graph.c +++ b/src/rrd_graph.c @@ -2811,8 +2811,8 @@ graph_paint(image_desc_t *im, char ***calcpr) im -> gdes[i].col ); } else if ( im -> gdes[i].yrule < 0 ) { gfx_new_line(im->canvas, - im -> xorigin + ii, im->yorigin - im -> ysize, - im -> xorigin + ii, im->yorigin - ( 1 - im -> gdes[i].yrule ) * im -> ysize, + im -> xorigin + ii, im->yorigin - im->ysize, + im -> xorigin + ii, im->yorigin - im->ysize - im->gdes[i].yrule * im->ysize, 1.0, im -> gdes[i].col ); -- 2.30.2