diff options
Diffstat (limited to 'src/sets.c')
-rw-r--r-- | src/sets.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) { |