diff options
author | Jens Arnold <amiconn@rockbox.org> | 2005-07-30 13:02:33 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2005-07-30 13:02:33 +0000 |
commit | 43b9cda13c5e6275de0921dc457af9760c95a53b (patch) | |
tree | 05a808414093da75a44a877db0a12e1330e51fc2 /apps | |
parent | 3d73790ab7da315efd5cb981e730a4fcf8f597bc (diff) | |
download | rockbox-43b9cda13c5e6275de0921dc457af9760c95a53b.tar.gz rockbox-43b9cda13c5e6275de0921dc457af9760c95a53b.zip |
Ooops, the adapted maximum iteration count was off by 60...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7259 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugins/mandelbrot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/mandelbrot.c b/apps/plugins/mandelbrot.c index 6e28f55b57..8474969650 100644 --- a/apps/plugins/mandelbrot.c +++ b/apps/plugins/mandelbrot.c | |||
@@ -168,7 +168,7 @@ void recalc_parameters(void) | |||
168 | y_step = (y_max - y_min) / LCD_HEIGHT; | 168 | y_step = (y_max - y_min) / LCD_HEIGHT; |
169 | y_delta = MUL64(y_step, (LCD_HEIGHT/8)); | 169 | y_delta = MUL64(y_step, (LCD_HEIGHT/8)); |
170 | step_log2 = MIN(ilog2_fp(x_step), ilog2_fp(y_step)); | 170 | step_log2 = MIN(ilog2_fp(x_step), ilog2_fp(y_step)); |
171 | max_iter = MAX(10, 10 - 15 * step_log2); | 171 | max_iter = MAX(10, -15 * step_log2 - 50); |
172 | } | 172 | } |
173 | 173 | ||
174 | void init_mandelbrot_set(void) | 174 | void init_mandelbrot_set(void) |