aboutsummaryrefslogtreecommitdiff
path: root/src/cubeit.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-09-19 02:23:32 +0200
committerThomas White <taw@physics.org>2012-02-22 15:26:58 +0100
commit6e11ceb42221aabfdc83662e6a5066a1cf07b4ac (patch)
tree0c66a938dc3ac23135232cf903c02a9fc238d7bd /src/cubeit.c
parent16a88c2f24ae69eca9d928171b833186f55b4065 (diff)
cubeit: Correct size
Diffstat (limited to 'src/cubeit.c')
-rw-r--r--src/cubeit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cubeit.c b/src/cubeit.c
index 84005500..6e614522 100644
--- a/src/cubeit.c
+++ b/src/cubeit.c
@@ -318,7 +318,7 @@ static void write_slice(const char *filename, double *vals, int z,
int x, y, zf;
float max = 0.0;
int zoom = 16;
- double s = zoom * 1000.0 / 1e9;
+ double s = zoom * 30.0 / 1e9;
cairo_surface_t *surface;
cairo_t *c;
int w, h;
@@ -336,7 +336,7 @@ static void write_slice(const char *filename, double *vals, int z,
}
max /= boost;
- STATUS("%f %f\n", s*(as+bs*cos(ang)), s*(bs*sin(ang)));
+ STATUS("%f %f\n", s*(xs*as+ys*bs*cos(ang)), s*(ys*bs*sin(ang))
surface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32,
s*(xs*as+ys*bs*cos(ang)),