From fbdecf09e174c0b9bc45695cab8fb9c49656ebfa Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Sun, 29 Jun 2008 12:20:07 +0000 Subject: fix little bug in computation of max_iter --- demos/mandelbrot/mandelbrot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'demos') 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; -- cgit v1.2.3