mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
fix little bug in computation of max_iter
This commit is contained in:
parent
97a1038653
commit
fbdecf09e1
@ -82,7 +82,7 @@ void MandelbrotWidget::paintEvent(QPaintEvent *)
|
|||||||
{
|
{
|
||||||
float resolution = xradius*2/width();
|
float resolution = xradius*2/width();
|
||||||
int max_iter = 64;
|
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;
|
max_iter = (max_iter/4)*4;
|
||||||
int img_width = width()/draft;
|
int img_width = width()/draft;
|
||||||
int img_height = height()/draft;
|
int img_height = height()/draft;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user