aboutsummaryrefslogtreecommitdiff
path: root/src/cubeit.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-09-19 02:52:48 +0200
committerThomas White <taw@physics.org>2012-02-22 15:26:58 +0100
commit09e36df6c83b23b434238e9aa2bef29cd04712f0 (patch)
tree6414c6a6cf1656e081de7b90c4cd5ac2877e3ab5 /src/cubeit.c
parentccbfa3fe4053b703ea959d4a2ad16323dea50218 (diff)
cubeit: Fix display transformation
Diffstat (limited to 'src/cubeit.c')
-rw-r--r--src/cubeit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cubeit.c b/src/cubeit.c
index 407c4b56..3e602485 100644
--- a/src/cubeit.c
+++ b/src/cubeit.c
@@ -349,7 +349,7 @@ static void write_slice(const char *filename, double *vals, int z,
c = cairo_create(surface);
cairo_scale(c, 1.0, -1.0);
- cairo_translate(c, 0.0, ys*yl);
+ cairo_translate(c, 0.0, -ys*yl);
cairo_rectangle(c, 0.0, 0.0, xs*xl + ys*xli, ys*yl);
cairo_set_source_rgb(c, 1.0, 1.0, 1.0);