summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 34e5de3)
raw | patch | inline | side by side (parent: 34e5de3)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 6 Jan 2009 15:45:53 +0000 (15:45 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 6 Jan 2009 15:45:53 +0000 (15:45 +0000) |
program/src/rrd_graph.c | patch | blob | history |
index b7c3f12b6c1f7adfcba8d6c24b55c500056883a1..416b5d5f38ddcaee9e75c303855c9106349fd1ed 100644 (file)
--- a/program/src/rrd_graph.c
+++ b/program/src/rrd_graph.c
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 );