summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e25c872)
raw | patch | inline | side by side (parent: e25c872)
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) |
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.3/program@1725 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_graph.c | patch | blob | history |
diff --git a/src/rrd_graph.c b/src/rrd_graph.c
index c4e8bf0df748913dc2711313168089711e23635c..63a4b2e1dad9639a9901f71f3283c2abd132c0e1 100644 (file)
--- a/src/rrd_graph.c
+++ b/src/rrd_graph.c
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 *
} 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);
}
}