diff options
author | David Phillips <dbphillipsnz@gmail.com> | 2015-06-09 15:08:32 +1200 |
---|---|---|
committer | David Phillips <dbphillipsnz@gmail.com> | 2015-06-09 15:08:32 +1200 |
commit | 10010ff5d5e601e47eac14fff6bb4fa644be57f2 (patch) | |
tree | 4f75b6f74cab34efb305f257111ad426b4df1660 /mbrot.c | |
parent | 611ed259391c4c311c214b72a92ce111101a8281 (diff) | |
download | fractal-gen-10010ff5d5e601e47eac14fff6bb4fa644be57f2.tar.xz |
Fixed a few known bugs when threads wasn't a multiple of the size
Diffstat (limited to 'mbrot.c')
-rw-r--r-- | mbrot.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -8,6 +8,7 @@ void *generate_mbrot_section(void *section) double a,b; double complex z,c; + for (y = d->core, b = (d->core*(3.5f/d->size)-1.75f); y < d->size; b+=((d->cores*3.5f)/d->size), y+=d->cores) { for (x = 0, a = -2.5f; x < d->size; a+=(3.5f/d->size), x++) @@ -21,7 +22,6 @@ void *generate_mbrot_section(void *section) z = cpow(z, d->power)+c; } - d->data[idx++] = (255*i)/d->iterat; } } |