aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJNDTUHH <jndiercks@gmail.com>2018-01-16 20:22:04 +0100
committerJNDTUHH <jndiercks@gmail.com>2018-01-16 20:22:04 +0100
commit734ef434c289abdcb7771989fcc73f12c95f5a63 (patch)
tree69033fe1afb18650e019ab5d3dd6164e8616ef5c /src
parentfe610572ba73898ce159fb70b9fa9a4cccffd331 (diff)
Streukacke gefixt
Diffstat (limited to 'src')
-rw-r--r--src/sets.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sets.c b/src/sets.c
index 6787a6e..eb09e6a 100644
--- a/src/sets.c
+++ b/src/sets.c
@@ -28,7 +28,7 @@ u32 mandelbrot_r(double x, double y, u32 iterations)
u32 _mandelbrot_r(double x, double y, double zx, double zy, u32 n, u32 iterations, double threshold)
{
- if ((n <= iterations) && ((zx * zx + zy * zy) < threshold)) {
+ if ((n < iterations) && ((zx * zx + zy * zy) < threshold)) {
double zx_new = (zx * zx - zy * zy + x);
double zy_new = (2 * zx * zy + y);
if ((zx_new == zx) && (zy_new == zy)) {