summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6a44cbf)
raw | patch | inline | side by side (parent: 6a44cbf)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sat, 7 May 2005 10:38:34 +0000 (10:38 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sat, 7 May 2005 10:38:34 +0000 (10:38 +0000) |
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@498 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_gfx.c | patch | blob | history |
diff --git a/src/rrd_gfx.c b/src/rrd_gfx.c
index 8b3493ec1c9351cb58508b51fe50995b5056d591..faa9c916ccacc2a1d4f12cf9b85339d9154da2e3 100644 (file)
--- a/src/rrd_gfx.c
+++ b/src/rrd_gfx.c
fputs(",", fp);
svg_write_number(fp, y);
fputs(") rotate(", fp);
- svg_write_number(fp, node->angle);
+ svg_write_number(fp, -node->angle);
fputs(")\"", fp);
x = y = 0;
svg_close_tag(fp);
fputc(' ', fp);
svg_write_number(fp, y);
fputs(" translate ", fp);
- svg_write_number(fp, -node->angle);
+ svg_write_number(fp, node->angle);
fputs(" rotate 0 ", fp);
svg_write_number(fp, ydelta);
fputs(" moveto ", fp);
}
pdf_set_fill_color(s, node->color);
if (node->angle != 0) {
- double a = 2 * M_PI * -node->angle / 360.0;
+ double a = 2 * M_PI * node->angle / 360.0;
double new_x, new_y;
cos_a = cos(a);
sin_a = sin(a);