aboutsummaryrefslogtreecommitdiff
path: root/algorithms/mandelbrot.c
diff options
context:
space:
mode:
Diffstat (limited to 'algorithms/mandelbrot.c')
-rw-r--r--algorithms/mandelbrot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/algorithms/mandelbrot.c b/algorithms/mandelbrot.c
index 33d7cde..e55b3e0 100644
--- a/algorithms/mandelbrot.c
+++ b/algorithms/mandelbrot.c
@@ -49,7 +49,7 @@ void
for (y = clust_id; y < size; y += clust_total) {
a = d->core*(f->scale/size)+left;
- for (x = d->core; x < size; x += cores) {
+ for (x = d->core; x < size; x += threads) {
z = 0;
c = a + I*b;
for (i = 0; i < iterat; i++) {
@@ -59,7 +59,7 @@ void
z = cpow(z , power) + c;
}
d->data[d->idx++] = (255*i)/iterat;
- a += cores*(f->scale/size);
+ a += threads*(f->scale/size);
}
b += clust_total*(f->scale/size);
}