aboutsummaryrefslogtreecommitdiffhomepage
path: root/demos
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-06-29 12:20:07 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-06-29 12:20:07 +0000
commitfbdecf09e174c0b9bc45695cab8fb9c49656ebfa (patch)
tree66f65c7a3378915a0c9b9fef4b100d3cad6f3399 /demos
parent97a10386531589581cc283f91d3883612b0f719a (diff)
fix little bug in computation of max_iter
Diffstat (limited to 'demos')
-rw-r--r--demos/mandelbrot/mandelbrot.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/mandelbrot/mandelbrot.cpp b/demos/mandelbrot/mandelbrot.cpp
index 59b68256c..7d86246a4 100644
--- a/demos/mandelbrot/mandelbrot.cpp
+++ b/demos/mandelbrot/mandelbrot.cpp
@@ -82,7 +82,7 @@ void MandelbrotWidget::paintEvent(QPaintEvent *)
{
float resolution = xradius*2/width();
int max_iter = 64;
- if(resolution < 1e-4f) max_iter += 32 * ( 4 - std::log10(resolution));
+ if(resolution < 1e-4f) max_iter += 32 * ( - 4 - std::log10(resolution));
max_iter = (max_iter/4)*4;
int img_width = width()/draft;
int img_height = height()/draft;