From: oetiker Date: Tue, 6 Jan 2009 15:45:53 +0000 (+0000) Subject: TICK with negative numbers should 'start from the top of the graph' looking down... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=664b4189a03c713853dabc837c1e9e47f93d51f2;p=rrdtool-all.git 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@1725 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd_graph.c b/program/src/rrd_graph.c index b7c3f12b..416b5d5f 100644 --- a/program/src/rrd_graph.c +++ b/program/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 );