Skip to content
Snippets Groups Projects
Commit fbdecf09 authored by Benoit Jacob's avatar Benoit Jacob
Browse files

fix little bug in computation of max_iter

parent 97a10386
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment