diff options
author | David Phillips <dbphillipsnz@gmail.com> | 2016-06-01 13:45:28 +1200 |
---|---|---|
committer | David Phillips <dbphillipsnz@gmail.com> | 2016-06-01 13:45:28 +1200 |
commit | da9941939798abe41caa07830a5605f0d131a2f2 (patch) | |
tree | ba7d8e12f379d3d632ed02477dc747de58b0bac4 /fractal-gen.c | |
parent | f2371dcb179928b8b36587d822daeb919b7d2d84 (diff) | |
download | fractal-gen-da9941939798abe41caa07830a5605f0d131a2f2.tar.xz |
Coords are now centre of image rather than top left
Diffstat (limited to 'fractal-gen.c')
-rw-r--r-- | fractal-gen.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fractal-gen.c b/fractal-gen.c index e80c96a..73bd25f 100644 --- a/fractal-gen.c +++ b/fractal-gen.c @@ -140,8 +140,8 @@ main(int argc, char **argv) /* FIXME repetition */ sections[i].core = i; sections[i].width = width; - sections[i].parent_frame.top = f.top; - sections[i].parent_frame.left = f.left; + sections[i].parent_frame.y = f.y; + sections[i].parent_frame.x = f.x; sections[i].parent_frame.scale = f.scale; sections[i].datasize = toalloc; fprintf(stderr, " -> Thread %lu\r", i); @@ -207,8 +207,8 @@ parse_args(int argc, char **argv) clust_id = 0; clust_total = 1; - f.left = nan(""); - f.top = nan(""); + f.x = nan(""); + f.y = nan(""); f.scale = nan(""); /* bail out early if no arguments are supplied */ @@ -228,8 +228,8 @@ parse_args(int argc, char **argv) case 'N': clust_id = atoi(optarg); break; case 'T': clust_total = atoi(optarg); break; - case 'x': f.left = atof(optarg); break; - case 'y': f.top = atof(optarg); break; + case 'x': f.x = atof(optarg); break; + case 'y': f.y = atof(optarg); break; case 'z': f.scale = atof(optarg); break; /* redundant case for '?', but explicitness is best */ |