summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8c68dd7)
raw | patch | inline | side by side (parent: 8c68dd7)
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) |
program/src/rrd_gfx.c | patch | blob | history |
diff --git a/program/src/rrd_gfx.c b/program/src/rrd_gfx.c
index 8b3493ec1c9351cb58508b51fe50995b5056d591..faa9c916ccacc2a1d4f12cf9b85339d9154da2e3 100644 (file)
--- a/program/src/rrd_gfx.c
+++ b/program/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);